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