Ejemplo n.º 1
0
 private void EndpointVideoStreamAdded(IEndpoint sender, EndpointRemoteVideoStreamAddedEventArgs e)
 {
     _remoteVideoStream = e.VideoStream;
     Debug.Log($"Remote added: {_remoteVideoStream.StreamId}");
     _remoteVideoStream.VideoStreamChanged += OnVideoStreamChanged;
     _remoteVideoStream.AddRenderer(_remote.material);
 }
Ejemplo n.º 2
0
 private void CallVideoStreamAdded(ICall sender, CallLocalVideoStreamAddedEventArgs e)
 {
     _localVideoStream = e.VideoStream;
     Debug.Log($"Local added: {_localVideoStream.StreamId}");
     _localVideoStream.VideoStreamChanged += OnVideoStreamChanged;
     _localVideoStream.AddRenderer(_local.material);
 }