Skip to content

Commit b221515

Browse files
committed
Enabling to start the foreground service when we invoke getDisplayMedia
1 parent b344b32 commit b221515

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

android/src/main/java/com/oney/WebRTCModule/WebRTCModule.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ public WebRTCModule(ReactApplicationContext reactContext) {
110110

111111
getUserMediaImpl = new GetUserMediaImpl(this, reactContext);
112112
dailyWebRTCDevicesManager = new DailyWebRTCDevicesManager(this, reactContext);
113+
// Enabling to react-native-webrtc automatically start and stop media projection service
114+
WebRTCModuleOptions.getInstance().enableMediaProjectionService = true;
113115
}
114116

115117
@NonNull

0 commit comments

Comments
 (0)