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