收藏
回答

几个小程序问题,还请官方解答一下,若是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不能支持滑动,该问题官方已回复是已知问题



最后一次编辑于  2017-07-26  (未经腾讯允许,不得转载)
邀请回答
复制链接收藏投诉关注问题回答

1 个回答

  • 徐烈
    徐烈
    2017-07-30

    有官方的朋友解答一下吗,谢谢!!

    2017-07-30
    赞同
    回复