wxml代码

view class="app"  view class="container"    video src="{{src}}"/video    button data-type="album" bindtap="bindButtonTap"相册/button  button data-type="camera" bindtap="bindButtonTap"相机/button/view/view

js代码

 bindButtonTap: function (e){    var that = this;    console.log(e);    var opentype=e.currentTarget.dataset.type;    //opentype    console.log(opentype);    wx.chooseVideo({      sourceType: ['"'+opentype+'"'],      maxDuration: 60,      camera: 'back',      success: function (res) {        that.setData({          src: res.tempFilePath        })      }    })  }

TAG标签: 微信小程序微信可以发多大的视频

http://www.xiaochengxub.com/read-103098.html