开发者

FLVPlayback.load results in all sound, no video

I'm trying to change the source of the FLVPlayback component on my stage with the load() method. When the new video loads I hear the audio playing but I see no video. Any idea what could be going on here?

The videos are rtmp streams from a Flash Media Server. The load command loo开发者_运维技巧ks somethink like this...

flv1.load("rtmp://192.168.1.111/vod/test/01");


For some reason when you change the video source in FLVPlayback it sets the video's _visible property to false... why? I have no idea...

This is my solution...

var LoadListenerObject:Object = new Object();
LoadListenerObject.ready = function() {
    _root.flv1['0']._visible = true;
    _root.flv1.play();
} 
_root.flv1.addEventListener("ready",LoadListenerObject);
_root.flv1.contentPath = "rtmp://192.168.1.111/vod/test/01";
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜