react-native-compressor 1.8.4 → 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 +5 -6
- 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/expo-plugin/compressor.d.ts +3 -1
- package/lib/typescript/expo-plugin/compressor.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 +4 -3
- package/src/Audio/index.tsx +5 -56
- package/src/utils/index.tsx +4 -54
package/README.md
CHANGED
|
@@ -5,12 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
<div align="center">
|
|
7
7
|
|
|
8
|
+
[](#Installation)
|
|
9
|
+
[](#managed-expo)
|
|
8
10
|
[](https://discord.gg/6Wx8Em8KAN)
|
|
9
11
|
[](https://github.com/numandev1/react-native-compressor/stargazers)
|
|
10
|
-
[](https://www.npmjs.com/package/react-native-compressor)
|
|
11
|
-

|
|
12
12
|

|
|
13
|
-
[](http://makeapullrequest.com)
|
|
14
13
|
|
|
15
14
|
</div>
|
|
16
15
|
|
|
@@ -402,7 +401,7 @@ await clearCache(); // this will clear cache of thumbnails cache directory
|
|
|
402
401
|
- ###### `quality: qualityType` (default: medium)
|
|
403
402
|
we can also control bitrate through quality. qualityType can be `low` | `medium` | `high`
|
|
404
403
|
|
|
405
|
-
**Note:
|
|
404
|
+
**Note: manual bitrate, samplerate etc will add soon**
|
|
406
405
|
|
|
407
406
|
## Background Upload
|
|
408
407
|
|
|
@@ -416,8 +415,8 @@ type FileSystemUploadOptions = (
|
|
|
416
415
|
uploadType?: FileSystemUploadType.BINARY_CONTENT,
|
|
417
416
|
}
|
|
418
417
|
| {
|
|
419
|
-
uploadType: FileSystemUploadType.MULTIPART,
|
|
420
|
-
fieldName?: string,
|
|
418
|
+
uploadType: FileSystemUploadType.MULTIPART, // will add soon
|
|
419
|
+
fieldName?: string, // will add soon
|
|
421
420
|
mimeType?: string,
|
|
422
421
|
parameters?: Record<string, string>,
|
|
423
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()) {
|