微信小程序视频上传
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/viewjs代码
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标签: 微信小程序微信可以发多大的视频
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。

