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事件是有效的!
求帮助…