react-native-compressor 1.8.5 → 1.8.6
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 +3 -3
- package/android/build.gradle +3 -0
- package/android/src/main/java/com/reactnativecompressor/Audio/AudioCompressor.kt +174 -496
- package/android/src/main/java/com/reactnativecompressor/Audio/AudioHelper.kt +23 -0
- package/android/src/main/java/com/reactnativecompressor/Audio/AudioMain.kt +5 -13
- package/android/src/main/java/com/reactnativecompressor/Utils/RealPathUtil.kt +74 -8
- package/android/src/main/java/com/reactnativecompressor/Utils/Utils.kt +5 -0
- package/lib/commonjs/Audio/index.js +3 -42
- package/lib/commonjs/Audio/index.js.map +1 -1
- package/lib/commonjs/utils/index.js +5 -44
- package/lib/commonjs/utils/index.js.map +1 -1
- package/lib/module/Audio/index.js +4 -43
- package/lib/module/Audio/index.js.map +1 -1
- package/lib/module/utils/index.js +5 -39
- package/lib/module/utils/index.js.map +1 -1
- package/lib/typescript/Audio/index.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +1 -1
- package/lib/typescript/utils/index.d.ts +1 -6
- package/lib/typescript/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Audio/index.tsx +5 -56
- package/src/utils/index.tsx +4 -54
package/README.md
CHANGED
|
@@ -401,7 +401,7 @@ await clearCache(); // this will clear cache of thumbnails cache directory
|
|
|
401
401
|
- ###### `quality: qualityType` (default: medium)
|
|
402
402
|
we can also control bitrate through quality. qualityType can be `low` | `medium` | `high`
|
|
403
403
|
|
|
404
|
-
**Note:
|
|
404
|
+
**Note: manual bitrate, samplerate etc will add soon**
|
|
405
405
|
|
|
406
406
|
## Background Upload
|
|
407
407
|
|
|
@@ -415,8 +415,8 @@ type FileSystemUploadOptions = (
|
|
|
415
415
|
uploadType?: FileSystemUploadType.BINARY_CONTENT,
|
|
416
416
|
}
|
|
417
417
|
| {
|
|
418
|
-
uploadType: FileSystemUploadType.MULTIPART,
|
|
419
|
-
fieldName?: string,
|
|
418
|
+
uploadType: FileSystemUploadType.MULTIPART, // will add soon
|
|
419
|
+
fieldName?: string, // will add soon
|
|
420
420
|
mimeType?: string,
|
|
421
421
|
parameters?: Record<string, string>,
|
|
422
422
|
}
|
package/android/build.gradle
CHANGED
|
@@ -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")
|
|
@@ -116,6 +117,8 @@ dependencies {
|
|
|
116
117
|
implementation "com.googlecode.mp4parser:isoparser:1.0.6"
|
|
117
118
|
|
|
118
119
|
implementation 'io.github.lizhangqu:coreprogress:1.0.2'
|
|
120
|
+
implementation 'com.github.banketree:AndroidLame-kotlin:v0.0.1'
|
|
121
|
+
implementation 'javazoom:jlayer:1.0.1'
|
|
119
122
|
}
|
|
120
123
|
|
|
121
124
|
if (isNewArchitectureEnabled()) {
|