private void StopTracks(IList<IMediaStreamTrack> tracks) { if (tracks == null) return; foreach (var track in tracks) { track.Stop(); } } }