File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
example/src/Screens/Video Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,6 @@ export default function App() {
114114 {
115115 compressionMethod : 'auto' ,
116116 minimumFileSizeForCompress : 5 ,
117- maxSize : 1000 ,
118117 } ,
119118 ( progress ) => {
120119 if ( backgroundMode ) {
Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ func makeValidUri(filePath: String) -> String {
247247 let maxBitrate : Int = 1669000
248248 let minValue : Float = min ( Float ( originalHeight) / Float( height) , Float ( originalWidth) / Float( width) )
249249 var remeasuredBitrate : Int = Int ( Float ( originalBitrate) / minValue)
250- remeasuredBitrate = remeasuredBitrate* Int( compressFactor)
250+ remeasuredBitrate = Int ( Float ( remeasuredBitrate ) * compressFactor)
251251 let minBitrate : Int = self . getVideoBitrateWithFactor ( f: minCompressFactor) / ( 1280 * 720 / ( width * height) )
252252 if ( originalBitrate < minBitrate) {
253253 return remeasuredBitrate;
You can’t perform that action at this time.
0 commit comments