我有15秒未嵌入的视频(源自网址)。当视频播放完成后,如何让它播放下一帧呢?
答案 0 :(得分:1)
如果您使用的是FLVPlayback组件,则可以这样做:
// for clarification
var video:FLVPlayback = myVideoInstance;
video.source = "http://example.com/myvideo.flv";
video.autoPlay = true;
video.addEventListener(VideoEvent.COMPLETE, function(e:VideoEvent) {
// video has finished
});
答案 1 :(得分:0)
请参阅视频播放完毕后调度的VideoEvent.COMPLETE
。
video.addEventListener(VideoEvent.COMPLETE, _doNext);
function _doNext(e:VideoEvent):void
{
video.removeEventListener(VideoEvent.COMPLETE, _doNext);
trace("video done, what's next?");
}