public IRtpSender AddTrack(IMediaStreamTrack track, string[] streamIds) { var rtpSender = _peerConnection.AddTrack(track.ToNative <RTCMediaStreamTrack>(), streamIds); if (rtpSender == null) { return(null); } return(new RtpSenderNative(rtpSender)); }
public IRtpTransceiver AddTransceiverWithTrack(IMediaStreamTrack track) { var rtpTransceiver = _peerConnection.AddTransceiverWithTrack(track.ToNative <RTCMediaStreamTrack>()); if (rtpTransceiver == null) { return(null); } return(new RtpTransceiverNative(rtpTransceiver)); }
public IRtpSender AddTrack(IMediaStreamTrack track, string[] streamIds) { var rtpSender = new RtpSenderNative(_peerConnection.AddTrack(track.ToNative(), streamIds)); return(rtpSender); }
public static MediaStreamTrack ToNative(this IMediaStreamTrack self) { return(self.ToNative <MediaStreamTrack>()); }