触摸屏视频优化

触摸屏视频播放手势支持,上下滑调整音量,左右滑调整进度

< Feedback on 触摸屏视频优化

Review: OK - script works, but has bugs

§
Posted: 03-01-2023

if(this.touchResult>0)
this.setToast(seconds2TimeStr(this.startTouchVideoTime)+" +"+offsetValStr);
else
this.setToast(seconds2TimeStr(this.startTouchVideoTime)+" "+offsetValStr);

这里的this.touchResult没有做范围判断,会出现infinity和NaN

§
Posted: 03-01-2023

if(this.touchResult>0)
this.setToast(seconds2TimeStr(this.startTouchVideoTime)+" +"+offsetValStr);
else
this.setToast(seconds2TimeStr(this.startTouchVideoTime)+" "+offsetValStr);

这里的this.touchResult没有做范围判断,会出现infinity和NaN

是 offsetValStr 没做判断,会出现infinity和NaN 和很长的小数(科学计数法

HeroChanSysuAuthor
§
Posted: 05-01-2023

offsetValStr是我的变量,只有在视频还未加载出来的时候才会出现NaN

Post reply

Sign in to post a reply.