求助:关于FLV播放器的seek
时间:2011-01-25
来源:互联网
自己试着搞了个FLV播放器
想通过拖动滑块来控制影片的播放进度
可用seek来控制的时候基本都会存在几秒的时差
不知道这个问题应该怎么解决
想通过拖动滑块来控制影片的播放进度
可用seek来控制的时候基本都会存在几秒的时差
不知道这个问题应该怎么解决
作者: 84862258 发布时间: 2011-01-25
确定定位点没错么?
作者: wadeduck 发布时间: 2011-01-25
您是指拖动出来赋给seek的点么?
我trace出来的值始终和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();
}
按钮部位的代码
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
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28