uniapp如何实现拍摄指定时间长度的短视频并上传?
网友回复
uni.chooseVideo({ count: 1,//只录制一个视频 sourceType: ['camera'],//开启视频相机 maxDuration: 10,//时长30s mediaType: ['video'],//类型为视频 success: res => { //录制成功 that.videoRecordingPath = res.tempFilePath; uni.compressVideo({ ...
点击查看剩余70%