@byteplus/react-native-rtc 1.0.4 → 1.0.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/android/src/main/java/com/volcengine/reactnative/vertc/VertcHelper.java +27 -0
- package/lib/commonjs/index.js +2262 -1114
- package/lib/module/index.js +2262 -1115
- package/lib/typescript/codegen/pack/api.d.ts +14 -1
- package/lib/typescript/interface.d.ts +157 -7
- package/lib/typescript/platforms/android/vertc.d.ts +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Copyright © 2022 BytePlusRTC All rights reserved.
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
|
|
4
|
+
package com.volcengine.reactnative.vertc;
|
|
5
|
+
|
|
6
|
+
import android.util.Log;
|
|
7
|
+
|
|
8
|
+
import com.ss.bytertc.engine.RTCVideo;
|
|
9
|
+
import com.ss.bytertc.engine.VideoEncoderConfig;
|
|
10
|
+
import com.ss.bytertc.engine.data.MirrorType;
|
|
11
|
+
|
|
12
|
+
public class VertcHelper {
|
|
13
|
+
|
|
14
|
+
static public VertcHelper sInstance = new VertcHelper();
|
|
15
|
+
|
|
16
|
+
public static VertcHelper getInstance() {
|
|
17
|
+
return sInstance;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
public int invokeSetVideoEncoderConfig(RTCVideo engine, VideoEncoderConfig[] channelSolutions) {
|
|
21
|
+
return engine.setVideoEncoderConfig(channelSolutions);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
public int invokeSetLocalVideoMirrorType(RTCVideo engine, int mirrorType) {
|
|
25
|
+
return engine.setLocalVideoMirrorType(MirrorType.fromId(mirrorType));
|
|
26
|
+
}
|
|
27
|
+
}
|