Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Commit

Permalink
v4
Browse files Browse the repository at this point in the history
  • Loading branch information
karkakol committed Apr 25, 2024
1 parent 5fbced7 commit aa2d5fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import android.content.ActivityNotFoundException
import android.content.Intent
import org.membraneframework.rtc.media.AudioTrack
import android.media.projection.MediaProjectionManager
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import com.twilio.audioswitch.AudioDevice
import expo.modules.kotlin.Promise
Expand Down Expand Up @@ -80,8 +81,10 @@ class MembraneWebRTC(val sendEvent: (name: String, data: Map<String, Any?>) -> U
}

fun onDestroy() {
audioSwitchManager?.stop()
localScreencastTrack?.stop()
Log.d("HHHH", "Before destory")
audioSwitchManager?.stop()
disconnect()
Log.d("HHHH", "After destory")
}

fun onActivityResult(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,5 +280,7 @@ class MembraneWebRTCModule : Module() {
OnDestroy {
membraneWebRTC.onDestroy()
}


}
}
}

0 comments on commit aa2d5fe

Please sign in to comment.