当前位置:网站首页>uniapp 制作手机app程序, 使用uni.chooseVideo录制视频,视频播放模糊分辨率低的原因
uniapp 制作手机app程序, 使用uni.chooseVideo录制视频,视频播放模糊分辨率低的原因
2022-06-25 03:44:00 【gblfy】
原因: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; //头条
}
})
抖音真实需求案例
uni.chooseVideo({
compressed:false,//是否压缩所选的视频源文件,默认值为 true,需要压缩。
sourceType: ['album','camera'],
success(e) {
uni.navigateTo({
url: "/pages/publish/publish?fileObjectEvent=" + JSON.stringify(e)
})
/**
* 或者采用uniCloud,在客户端完成上传,减少链路,因为文件大,通信链路和耗时是双倍的
*/
}
})
边栏推荐
- 发布功能完成02《ivx低代码签到系统制作》
- 【Rust投稿】捋捋 Rust 中的 impl Trait 和 dyn Trait
- 一文搞懂php中的(DI)依赖注入
- OpenSUSE installation pit log
- Jilin University 22 spring March "automatic control principle" work assessment-00050
- Randla net: efficient semantic segmentation of large scale point clouds
- ZABBIX installation pit avoidance Guide
- Work assessment of pharmacotherapeutics of Jilin University in March of the 22nd spring -00064
- Tianshu night reading notes - 8.4 diskperf disassembly
- 老叶的祝福
猜你喜欢
Time management understood after working at home | community essay solicitation
Tencent's open source project "Yinglong" has become a top-level project of Apache: the former long-term service wechat payment can hold a million billion level of data stream processing
Collaboration + Security + storage, cloud box helps Shenzhen edetai restructure its data center
What is an SSL certificate and what are the benefits of having an SSL certificate?
Musk: Twitter should learn from wechat and make 1billion people "live on it" into a super app
The release function completed 02 "IVX low code sign in system production"
Deveco studio 3.0 editor configuration tips
陆奇首次出手投资量子计算
Does it count as staying up late to sleep at 2:00 and get up at 10:00? Unless you can do it every day
Sleep more, you can lose weight. According to the latest research from the University of Chicago, sleeping more than 1 hour a day is equivalent to eating less than one fried chicken leg
随机推荐
孙武玩《魔兽》?有图有真相
Musk: Twitter should learn from wechat and make 1billion people "live on it" into a super app
AI writes its own code to let agents evolve! The big model of openai has the flavor of "human thought"
多睡觉,能减肥,芝加哥大学最新研究:每天多睡1小时,等于少吃一根炸鸡腿...
Now, the ear is going into the metauniverse
(超详细onenet TCP协议接入)arduino+esp8266-01s接入物联网平台,上传实时采集数据/TCP透传(以及lua脚本如何获取和编写
騰訊開源項目「應龍」成Apache頂級項目:前身長期服務微信支付,能hold住百萬億級數據流處理...
后台页制作01《ivx低代码签到系统制作》
js工具函数,自己封装一个节流函数
Amazon's other side in China
Rebeco: using machine learning to predict stock crash risk
Tai Chi graphics 60 lines of code to achieve classic papers, 0.7 seconds to get Poisson disk sampling, 100 times faster than numpy
OpenSUSE installation pit log
Disassembly of Weima prospectus: the electric competition has ended and the intelligent qualifying has just begun
The file attributes downloaded by the browser are protected. How to remove them
About PLSQL error initialization failure
How to play well in the PMP Exam?
俄罗斯AIRI研究院等 | SEMA:利用深度迁移学习进行抗原B细胞构象表征预测
The problem that only the home page can be accessed under openSUSE Apache laravel
Is it safe to open an account with flush securities?