Sfoglia il codice sorgente

fix. constants variances

matrixbirds 5 anni fa
parent
commit
9b2e69dc9d

+ 13
- 1
CHANGELOG Vedi File

@@ -6,7 +6,19 @@
6 6
 - support 2.4.0-alpha.2 using 0.55.1 as peerDependency and support typescript
7 7
 - support 2.4.0-alpha.3 bugfix iOS receiveStreamMessage data is null
8 8
 - support 2.4.0-alpha.4 bugfix iOS videoSizeChanged field rotation typo
9
-- support 2.4.0-alpha.5 bugfix Android & iOS side not support fit mode and hidden mode. Deprecate & Remove: setupLocalVideo & setupRemoteVideo
9
+- support 2.4.0-alpha.5 bugfix Android & iOS side not support fit mode and hidden mode. 
10
+  1. Deprecate & Remove: setupLocalVideo & setupRemoteVideo
11
+  2. rename iOS side constants
12
+  ```javascript
13
+  "AgoraVideoMirrorModeAuto" to "VideoMirrorModeAuto"
14
+  "AgoraVideoMirrorModeEnabled" to "VideoMirrorModeEnabled"
15
+  "AgoraVideoMirrorModeDisabled" to "VideoMirrorModeDisabled"
16
+  "AgoraChannelProfileCommunication" to "ChannelProfileCommunication"
17
+  "AgoraChannelProfileLiveBroadcasting" to "ChannelProfileLiveBroadcasting"
18
+  "AgoraChannelProfileGame" to "ChannelProfileGame"
19
+  "AgoraVideoMode" to "VideoMode"
20
+  "AgoraAudioMode" to "AudioMode"
21
+  ```
10 22
 
11 23
 #### 2.3.3-alpha
12 24
 - support agora video sdk 2.3.3

+ 2
- 2
android/src/main/java/com/syan/agora/AgoraModule.java Vedi File

@@ -138,8 +138,8 @@ public class AgoraModule extends ReactContextBaseJavaModule {
138 138
     private static final String InjectStreamStatusStopTimeout = "InjectStreamStatusStopTimeout";
139 139
     private static final String InjectStreamStatusStopFailed = "InjectStreamStatusStopFailed";
140 140
     private static final String InjectStreamStatusBroken = "InjectStreamStatusBroken";
141
-    private static final String AgoraAudioMode = "AgoraAudioMode";
142
-    private static final String AgoraVideoMode = "AgoraVideoMode";
141
+    private static final String AgoraAudioMode = "AudioMode";
142
+    private static final String AgoraVideoMode = "VideoMode";
143 143
 
144 144
     public AgoraModule(ReactApplicationContext context) {
145 145
         super(context);

+ 8
- 8
ios/RCTAgora/RCTAgora.m Vedi File

@@ -132,14 +132,14 @@ RCT_EXPORT_MODULE();
132 132
            @"AudioRawFrameOperationModeReadWrite": @(AgoraAudioRawFrameOperationModeReadWrite),
133 133
            @"VideoStreamTypeHigh": @(AgoraVideoStreamTypeHigh),
134 134
            @"VideoStreamTypeLow": @(AgoraVideoStreamTypeLow),
135
-           @"AgoraVideoMirrorModeAuto": @(AgoraVideoMirrorModeAuto),
136
-           @"AgoraVideoMirrorModeEnabled": @(AgoraVideoMirrorModeEnabled),
137
-           @"AgoraVideoMirrorModeDisabled": @(AgoraVideoMirrorModeDisabled),
138
-           @"AgoraChannelProfileCommunication": @(AgoraChannelProfileCommunication),
139
-           @"AgoraChannelProfileLiveBroadcasting": @(AgoraChannelProfileLiveBroadcasting),
140
-           @"AgoraChannelProfileGame": @(AgoraChannelProfileGame),
141
-           @"AgoraAudioMode": @(AgoraAudioMode),
142
-           @"AgoraVideoMode": @(AgoraVideoMode),
135
+           @"VideoMirrorModeAuto": @(AgoraVideoMirrorModeAuto),
136
+           @"VideoMirrorModeEnabled": @(AgoraVideoMirrorModeEnabled),
137
+           @"VideoMirrorModeDisabled": @(AgoraVideoMirrorModeDisabled),
138
+           @"ChannelProfileCommunication": @(AgoraChannelProfileCommunication),
139
+           @"ChannelProfileLiveBroadcasting": @(AgoraChannelProfileLiveBroadcasting),
140
+           @"ChannelProfileGame": @(AgoraChannelProfileGame),
141
+           @"AudioMode": @(AgoraAudioMode),
142
+           @"VideoMode": @(AgoraVideoMode),
143 143
          };
144 144
 }
145 145