Browse Source

Update README.md

少言 7 years ago
parent
commit
6d52e0afbe
1 changed files with 9 additions and 6 deletions
  1. 9
    6
      README.md

+ 9
- 6
README.md View File

28
     CoreMotion.framework
28
     CoreMotion.framework
29
     CoreMedia.framework
29
     CoreMedia.framework
30
     CoreTelephony.framework
30
     CoreTelephony.framework
31
+    
31
 TARGETS->Build Phases-> Link Binary With Libaries中点击“+”按钮,在弹出的窗口中点击“Add Other”按钮,选择
32
 TARGETS->Build Phases-> Link Binary With Libaries中点击“+”按钮,在弹出的窗口中点击“Add Other”按钮,选择
33
+
32
     node_modules/react-native-agora/ios/RCTAgora/libs/libcrypto.a
34
     node_modules/react-native-agora/ios/RCTAgora/libs/libcrypto.a
33
     node_modules/react-native-agora/ios/RCTAgora/libs/AgoraRtcCryptoLoader.framework
35
     node_modules/react-native-agora/ios/RCTAgora/libs/AgoraRtcCryptoLoader.framework
34
     node_modules/react-native-agora/ios/RCTAgora/libs/AgoraRtcEngineKit.framework
36
     node_modules/react-native-agora/ios/RCTAgora/libs/AgoraRtcEngineKit.framework
37
+    
35
 TARGETS->Build Settings->Search Paths->Framework Search Paths添加
38
 TARGETS->Build Settings->Search Paths->Framework Search Paths添加
39
+
36
     "$(SRCROOT)/../node_modules/react-native-agora/ios/RCTAgora/libs"
40
     "$(SRCROOT)/../node_modules/react-native-agora/ios/RCTAgora/libs"
41
+    
37
 TARGETS->Build Settings->Search Paths->Library Search Paths添加
42
 TARGETS->Build Settings->Search Paths->Library Search Paths添加
43
+
38
     "$(SRCROOT)/../node_modules/react-native-agora/ios/RCTAgora/libs"
44
     "$(SRCROOT)/../node_modules/react-native-agora/ios/RCTAgora/libs"
45
+    
39
 TARGETS->Build Settings->Enable Bitcode设置为No
46
 TARGETS->Build Settings->Enable Bitcode设置为No
40
 
47
 
41
 TARGETS->Capabilities->Background Modes->Modes勾选Audio,AirPlay,and Picture In Picture
48
 TARGETS->Capabilities->Background Modes->Modes勾选Audio,AirPlay,and Picture In Picture
153
 
160
 
154
         //初始化Agora
161
         //初始化Agora
155
         const options = {
162
         const options = {
156
-            appid: '',
163
+            appid: '前往Agora官网进行申请--https://www.agora.io/cn/',
157
             channelProfile: 1,
164
             channelProfile: 1,
158
             videoProfile: 40,
165
             videoProfile: 40,
159
             clientRole: 1,
166
             clientRole: 1,
227
     }
234
     }
228
 
235
 
229
     handlerCancel = () => {
236
     handlerCancel = () => {
230
-
231
         RtcEngine.leaveChannel();
237
         RtcEngine.leaveChannel();
232
-
233
-        const {navigator} = this.props;
234
-        navigator.pop()
235
     };
238
     };
236
 
239
 
237
     handlerSwitchCamera = () => {
240
     handlerSwitchCamera = () => {
351
         justifyContent: 'space-around'
354
         justifyContent: 'space-around'
352
     }
355
     }
353
 });
356
 });
354
-```
357
+```