public void OnVideoTrackRemoved(RemoteParticipant participant, IVideoTrackPublication videoTrack) { //LogHelper.Call(GetType(), videoTrack.TrackId); if (RemoteVideoTrack.Name != videoTrack.VideoTrack.Name) { return; } _listener?.RemoveRemoteVideoTrack(RemoteVideoTrack); RemoteVideoTrack = null; }
void DropRenderers(IVideoTrackPublication track) { if (track?.VideoTrack.Renderers?.Any() == true) { foreach (var r in track.VideoTrack.Renderers.ToArray()) { track.VideoTrack.RemoveRenderer(r); } } }
public void OnVideoTrackEnabled(RemoteParticipant participant, IVideoTrackPublication videoTrack) { //LogHelper.Call(GetType(), videoTrack.TrackId); }
public void OnVideoTrackAdded(RemoteParticipant participant, IVideoTrackPublication videoTrack) { //LogHelper.Call(GetType(), videoTrack.TrackId); RemoteVideoTrack = videoTrack.VideoTrack; _listener?.SetRemoteVideoTrack(RemoteVideoTrack); }