在真机上测试使用 bind:ended 有问题,但使用 bindended 没有问题
video 组件播放结束(bindended)事件无效控件代码: [代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"video"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]video[代码] [代码]id[代码][代码]=[代码][代码]"myVideo"[代码][代码] [代码][代码]autoplay[代码][代码]=[代码][代码]"true"[代码][代码] [代码][代码]show-fullscreen-btn[代码][代码]=[代码][代码]"false"[代码][代码] [代码][代码]controls [代码][代码]loop[代码][代码]=[代码][代码]"true"[代码][代码] [代码][代码]src[代码][代码]=[代码][代码]"http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400"[代码][代码] [代码][代码]binderror[代码][代码]=[代码][代码]"videoErrorCallback"[代码][代码] [代码][代码]bindplay[代码][代码]=[代码][代码]"bindPlay"[代码][代码] [代码][代码]bindended[代码][代码]=[代码][代码]"funended"[代码][代码]></[代码][代码]video[代码][代码]>[代码][代码]</[代码][代码]view[代码][代码]>[代码]JS代码: [代码]bindPlay: [代码][代码]function[代码] [代码]() {[代码][代码] [代码][代码]console.log([代码][代码]"播放"[代码][代码])[代码][代码] [代码][代码]},[代码][代码] [代码][代码]bindPause: [代码][代码]function[代码] [代码]() {[代码][代码] [代码][代码]this[代码][代码].videoContext.pause()[代码][代码] [代码][代码]},[代码][代码] [代码][代码]videoErrorCallback: [代码][代码]function[代码] [代码](e) {[代码][代码] [代码][代码]console.log([代码][代码]'视频错误信息:'[代码][代码])[代码][代码] [代码][代码]console.log(e.detail.errMsg)[代码][代码] [代码][代码]},[代码][代码] [代码][代码]funended: [代码][代码]function[代码] [代码]() {[代码][代码]//播放结束按钮函数[代码][代码] [代码][代码]console.log([代码][代码]"播放结束"[代码][代码])[代码][代码] [代码][代码]}[代码]bindPlay事件是有效的! 求帮助....
2018-05-19video在fixed定位下,滚动会出现视频不随着正常滚动节奏而停留在原地或出现闪烁的情况,请问怎么解决?
video 组件滚动会在原位置留下黑块fixed 定位的video组件,在组件内滚动的时候,原位置会留下同等大小的黑块: [图片] [图片]
2018-05-18