几个小程序问题,还请官方解答一下,若是bug,就慢慢等了
1、苹果机下underline出现双横线,安卓机是好的,如图:
2、多个video的唯一播放,已经用代码做了限制,在开发者工具操作正常,但是在真机上不能使用,点击以后,每个视频都会放,不会暂停原来的视频
< video id = "Video1" data-id = "Video1" bindtap = "playVideo" src = "http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400" controls></ video > < video id = "Video2" data-id = "Video2" bindtap = "playVideo" src = "http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400" controls></ video > < video id = "Video3" data-id = "Video3" bindtap = "playVideo" src = "http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400" controls></ video > |
playVideo: function (e){ var that = this ; var VideoID = e.target.dataset.id var videoContextOld var videoContextNew if (that.data.oldVideoID == '' ){ that.setData({ oldVideoID: e.target.dataset.id }) } if (VideoID != that.data.oldVideoID && that.data.oldVideoID!= '' ) { videoContextOld = wx.createVideoContext(that.data.oldVideoID) videoContextOld.pause() console.log( 'videoContextOld' , videoContextOld) videoContextNew = wx.createVideoContext(VideoID) videoContextNew.play() videoContextNew.requestFullScreen console.log( 'videoContextNew' , videoContextNew) that.setData({ oldVideoID: VideoID }) } else { videoContextNew = wx.createVideoContext(that.data.oldVideoID) videoContextNew.play() videoContextNew.requestFullScreen } }, |
3、video不能支持滑动,该问题官方已回复是已知问题