原因:compressed参数是true,这个参数的意思是‘是否压缩所选的视频源文件,默认值为 true,需要压缩’。如果不加这个参数默认就是true,就会默认压缩视频播放出来就是模糊的,改为false就可以了
可以参考uniapp API开发文档 uni.chooseVideo
uni.chooseVideo({
maxDuration: 60,
count: 1,
compressed:false,//是否压缩所选的视频源文件,默认值为 true,需要压缩。
// camera: this.cameraList[this.cameraIndex].value,
sourceType: ['camera'],
success: (responent) => {
this.videoPath = responent.tempFilePath;
// this.src = responent.tempFilePath; //头条
}
})