uni.chooseVideo({
count: 1,//只录制一个视频
sourceType: ['camera'],//开启视频相机
maxDuration: 10,//时长30s
mediaType: ['video'],//类型为视频
success: res => {
//录制成功
that.videoRecordingPath = res.tempFilePath;
uni.compressVideo({
src: res.tempFilePath,
quality: 'low', //'low':低,'medium':中,'high':高
success: function (res){
console.log('压缩后',res)
// that.videoUpload(res.tempFilePath);
},
fail: function (err) {
uni.showToast({
title:'视频压缩失败',
icon:'none'
},2000)
}
})
//存储到本地
},
fail: (err) => {
//提示
uni.showToast({
title: '视频录制失败!',
duration: 2000
});
}
})
网友回复
谷歌的TurboQuant是不是真的?
ai短片剧本与脚本区别?
如何在cli命令行中渲染浏览网页?
未来的工作会不会变成如何使用很少的tokens词元来高效完成任务?
openclaw如何更换端口号外网http直接访问?
openclaw能否在无桌面ui的linux系统运行?
什么是Harness Engineering?
同一个中英混合文本不同大模型计算tokens长度一致吗?
Browser Use / Playwright / Puppeteer 与Chrome DevTools Protocol(CDP)的关系?
能否在三维空间调用ai的api实现vrm模型执行任意的姿势动作与行走完成任务?


