RTCMediaStream CreateLocalMediaStream() { RTCMediaStream localStream = _factory.MediaStreamWithLabel("ARDAMS"); RTCVideoTrack localVideoTrack = CreateLocalVideoTrack(); if (localVideoTrack != null) { localStream.AddVideoTrack(localVideoTrack); ARDAppClientDelegate.DidReceiveLocalVideoTrack(this, localVideoTrack); // [_delegate appClient:self didReceiveLocalVideoTrack:localVideoTrack]; } localStream.AddAudioTrack(_factory.AudioTrackWithID("ARDAMSa0")); if (_isSpeakerEnabled) { EnableSpeaker(); } return(localStream); }
public void AddTrack(IVideoTrack videoTrack) { _mediaStream.AddVideoTrack(videoTrack.ToNative <RTCVideoTrack>()); }