public void DisconnectFromPeer() { #if !UNITY_EDITOR if (decodedVideo != null) { decodedVideo.OnDecodedVideoFrame -= DecodedVideo_OnDecodedVideoFrame; } _webRtcControl.DisconnectFromPeer(); #endif }
private void DisconnectPeerBtn_Click(object sender, RoutedEventArgs e) { RunOnUiThread(() => { if (encodedVideo != null) { encodedVideo.OnEncodedVideoFrame -= EncodedVideo_OnEncodedVideoFrame; } _webRtcControl.DisconnectFromPeer(); } ); }