的StageVideo在Android的Nexus 7显示了一个黑色的正方形 [英] StageVideo on Android Nexus 7 shows a black square

查看:132
本文介绍了的StageVideo在Android的Nexus 7显示了一个黑色的正方形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

的StageVideo在Adobe AIR 15,在一台Nexus 7与Android 4.4.3,出口在这两个GPU和直接,显示一个黑色的正方形,而不是接收到的视频。 这是一个P2P RTMFP视频聊天。在桌面上同一项目完美的作品,一度远销到Android,而不是遥远的StageVideo它显示了一个黑色的正方形。音频到达完美的,和其他的P2P功能很好地工作。 code是没事的,因为同一个项目在编译为AIR15桌面和工作可爱。 任何想法,为什么出现这种情况?

StageVideo in Adobe AIR 15, on a Nexus 7 with Android 4.4.3, exporting in both GPU and DIRECT, shows a black square instead of received video. It is a P2P RTMFP Video Chat. Same project on desktop works perfectly, once exported to Android, instead of remote StageVideo it shows a black square. Audio arrives perfectly, and other P2P features work well. Code is all right since same project compiles on AIR15 for desktop and works lovely. Any idea why this happens?

推荐答案

舞台视频切换渲染状态。这是一个恼人的错误,这是你可以做一个补丁。

The stage video is switching a render state. It's an annoying bug, and this is what you can do as a patch.

  1. 尝试玩。
  2. 如果RENDER_STATE变为不可用或软件,玩了!

这将引起黑色闪烁,而不是最好UX,但经过第二次的剪辑将播放或2。

This will cause black flickering and not the best UX, but the clip will play after a second or 2.

_stageVideo.addEventListener(StageVideoEvent.RENDER_STATE, function (e:StageVideoEvent):void{
                trace ("RENDER STATE: ", e.status);
                if (e.status == VideoStatus.UNAVAILABLE || e.status == VideoStatus.SOFTWARE)
                {
                    _ns.play(_videoURL);
                }
            });

如果您发现下面这个信息更有效的解决方案,请张贴。 谢谢你。

If you find a more effective solution following this info, please post it. Thank you.

这篇关于的StageVideo在Android的Nexus 7显示了一个黑色的正方形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆