From 99cde2336310c3f629f8c9ecf70bc63b8455d101 Mon Sep 17 00:00:00 2001 From: Mikolaj Date: Mon, 22 Jan 2024 18:25:10 +0100 Subject: [PATCH] Test no streaming track --- .../membraneframework/rtc/InternalMembraneRTC.kt | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/MembraneRTC/src/main/java/org/membraneframework/rtc/InternalMembraneRTC.kt b/MembraneRTC/src/main/java/org/membraneframework/rtc/InternalMembraneRTC.kt index a60b3b3..7b758ad 100644 --- a/MembraneRTC/src/main/java/org/membraneframework/rtc/InternalMembraneRTC.kt +++ b/MembraneRTC/src/main/java/org/membraneframework/rtc/InternalMembraneRTC.kt @@ -111,15 +111,18 @@ internal class InternalMembraneRTC eglBase, videoParameters, captureDeviceName - ).also { it.start() } + ).also { + it.start() + it.setEnabled(false) + } localTracks.add(videoTrack) -// localEndpoint = localEndpoint.withTrack(videoTrack.id(), metadata) + localEndpoint = localEndpoint.withTrack(videoTrack.id(), metadata) -// coroutineScope.launch { -// peerConnectionManager.addTrack(videoTrack) -// rtcEngineCommunication.renegotiateTracks() -// } + coroutineScope.launch { + peerConnectionManager.addTrack(videoTrack) + rtcEngineCommunication.renegotiateTracks() + } return videoTrack }