private void StopLocalVideo()
 {
     lock (_isLocalVideoPlayingLock)
     {
         if (_isLocalVideoPlaying)
         {
             localVideo.MediaPlayer.Pause();
             _peerConnection.RemoveLocalAudioTrack();
             _peerConnection.RemoveLocalVideoTrack();
             _isLocalVideoPlaying = false;
         }
     }
 }