我遇到了FLVPlayback complete event与FlashPlayer 11.1的AS3发布相关的问题
问题是,在视频开始几秒钟后,complete事件被触发,并且问题总是发生在播放视频列表几个小时之后。
下面是一些代码:
var my_player:FLVPlayback = new FLVPlayback();
function makePlayer():void{
my_player.scaleMode = "exactFit";
my_player.x = video_x;
my_player.y = video_y;
my_player.width = video_width;
my_player.height = video_height;
if(bBordi)
my_player.mask = mask_mc;
video.addChild(my_player);
my_player.source = my_path + my_videos[nVideo].@URL;
my_player.addEventListener(fl.video.VideoEvent.COMPLETE, completePlay);
my_player.volume=video_volume;
}
function completePlay(e:fl.video.VideoEvent):void
{
if(!my_player.stopped)
return;
trace("VIDEO ENDED: " + my_path + my_videos[nVideo].@URL)
nVideo++;
if(nVideo >= my_total)
nVideo = 0;
playPlayer();
}
function playPlayer():void{
my_player.source=(my_path + my_videos[nVideo].@URL);
my_player.play();
}发布于 2015-02-05 16:18:42
FlashPlayer 11.8的发布解决了这个问题。
https://stackoverflow.com/questions/28324301
复制相似问题