+ -
当前位置:首页 → 问答吧 → 求助:关于FLV播放器的seek

求助:关于FLV播放器的seek

时间:2011-01-25

来源:互联网

自己试着搞了个FLV播放器
想通过拖动滑块来控制影片的播放进度
可用seek来控制的时候基本都会存在几秒的时差
不知道这个问题应该怎么解决

作者: 84862258   发布时间: 2011-01-25

确定定位点没错么?

作者: wadeduck   发布时间: 2011-01-25

您是指拖动出来赋给seek的点么?
我trace出来的值始终和seek定位后的位置会差几秒

作者: 84862258   发布时间: 2011-01-25

Now_Load.Ns_Btn.onPress = function() {
var Plat_Time:Number
clearInterval(this.Play_Video)
Video_Ns.pause();
startDrag(this,false,this._parent.Loading._x,this._y,this._parent.Load_Bg._width + this._parent.Load_Bg._x - this._width,this._y);
this.onEnterFrame = function () {
Plat_Time = Math.floor((this._x - this._parent.Loading._x)/(this._parent.Load_Bg._width - this._width + this._parent.Loading._x)*(Video_Ns.All_Time))
Video_Ns.seek(Plat_Time);
}
};
Now_Load.Ns_Btn.onRelease = Now_Load.Ns_Btn.onReleaseOutside = function() {
this.stopDrag();
delete this.onEnterFrame
this.Play_Video = setInterval(Show_Time, 10);
Video_Ns.pause();
}

按钮部位的代码

作者: 84862258   发布时间: 2011-01-25

热门下载

更多