You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-5Lines changed: 24 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,8 @@ Once the `@livekit/react-native-webrtc` dependency is installed, one last step i
37
37
38
38
In your [MainApplication.java](https://github.com/livekit/client-sdk-react-native/blob/main/example/android/app/src/main/java/com/example/livekitreactnative/MainApplication.java) file:
39
39
40
-
```
40
+
#### Java
41
+
```java
41
42
importcom.livekit.reactnative.LiveKitReactNative;
42
43
importcom.livekit.reactnative.audio.AudioType;
43
44
@@ -55,11 +56,30 @@ public class MainApplication extends Application implements ReactApplication {
55
56
}
56
57
```
57
58
59
+
Or in your **MainApplication.kt** if you are using RN 0.73+
60
+
#### Kotlin
61
+
```kt
62
+
importcom.livekit.reactnative.LiveKitReactNative
63
+
importcom.livekit.reactnative.audio.AudioType
64
+
65
+
classMainActivity : ReactActivity() {
66
+
overridefunonCreate(savedInstanceState:Bundle?) {
67
+
// Place this above any other RN related initialization
68
+
// When AudioType is omitted, it'll default to CommunicationAudioType
69
+
// use MediaAudioType if user is only consuming audio, and not publishing
0 commit comments