-
-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
压缩后打印出来的本地路径和原路径相同 #255
Comments
👋 @caijiami |
@只有在ios的时候会出现这种情况 |
@caijiami i am very busy in my company job, hopefully i will look into after week |
I have tried many versions, the latest version 1.8.22 (1.8.4 and above) ios compression is fine, but Android can not build
Versions 1.6.0 and below build normally, but ios does not compress and still returns to the original video path |
"react-native-compressor": "1.0.0",
"react-native": "0.64.2",
上面事版本好,下面是调用的方法
let uri=(videos[0].uri.indexOf('file://')!=-1?'':'file://')+videos[0].uri console.log(uri) const result = await Video.compress( uri, { compressionMethod: 'auto', bitrate: 49152 // 48K 可以修改 }, (progress) => { console.log('Compression Progress: ', progress); } ); console.log(result);
打印出来的uri和result相同
The text was updated successfully, but these errors were encountered: