0
我使用flex开发Android应用程序,并使用Red5 Server作为媒体服务器来共享视频数据。在Android上使用Flex播放NetStream
我想让应用程序从Red5播放NetStream。
var ns:NetStream = new NetStream(nc);
var video:Video = new Video();
video.width = 313;
video.height = 194;
video.attachNetStream(ns);
ns.play("fromPC");
videoDisplay.addChild(video);
的VideoDisplay声明如下:
<s:VideoDisplay x="10" y="10"
width="320" height="193"
id="videoDisplay"/>
Adobe建议避免使用在移动设备上<s:VideoDisplay/>
,但我发现它的工作与Android 3.X,而不是在Android的4.X.
所以我想知道我可以在Android 4.0及更高版本上玩NetStream
。
为什么要使用VideoDisplay?只需尝试将您的Video实例添加到UIComponent容器。 – valentin 2013-05-17 08:28:10