react-native-compressor 1.8.5 → 1.8.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -267,7 +267,7 @@ Video.cancelCompression(cancellationVideoId);
267
267
  import { Audio } from 'react-native-compressor';
268
268
 
269
269
  const result = await Audio.compress(
270
- 'file://path_of_file/file_example_MP3_2MG.mp3',
270
+ 'file://path_of_file/file_example_MP3_2MG.wav', // recommended wav file but can be use mp3 file
271
271
  { quality: 'medium' }
272
272
  );
273
273
  ```
@@ -395,13 +395,14 @@ await clearCache(); // this will clear cache of thumbnails cache directory
395
395
  ## Audio
396
396
 
397
397
  - ###### `compress(url: string, options?: audioCompresssionType): Promise<string>`
398
+ Android: recommended to use `wav` file as we convert mp3 to wav then apply bitrate
398
399
 
399
400
  ### audioCompresssionType
400
401
 
401
402
  - ###### `quality: qualityType` (default: medium)
402
403
  we can also control bitrate through quality. qualityType can be `low` | `medium` | `high`
403
404
 
404
- **Note: Audio compression will be add soon**
405
+ **Note: manual bitrate, samplerate etc will add soon**
405
406
 
406
407
  ## Background Upload
407
408
 
@@ -415,8 +416,8 @@ type FileSystemUploadOptions = (
415
416
  uploadType?: FileSystemUploadType.BINARY_CONTENT,
416
417
  }
417
418
  | {
418
- uploadType: FileSystemUploadType.MULTIPART,
419
- fieldName?: string,
419
+ uploadType: FileSystemUploadType.MULTIPART, // will add soon
420
+ fieldName?: string, // will add soon
420
421
  mimeType?: string,
421
422
  parameters?: Record<string, string>,
422
423
  }
@@ -100,6 +100,7 @@ android {
100
100
  repositories {
101
101
  mavenCentral()
102
102
  google()
103
+ maven { url "https://jitpack.io" }
103
104
  }
104
105
 
105
106
  def kotlin_version = getExtOrDefault("kotlinVersion")
@@ -115,7 +116,8 @@ dependencies {
115
116
  implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4"
116
117
  implementation "com.googlecode.mp4parser:isoparser:1.0.6"
117
118
 
118
- implementation 'io.github.lizhangqu:coreprogress:1.0.2'
119
+ implementation 'com.github.banketree:AndroidLame-kotlin:v0.0.1'
120
+ implementation 'javazoom:jlayer:1.0.1'
119
121
  }
120
122
 
121
123
  if (isNewArchitectureEnabled()) {