Exemplo n.º 1
0
        public IRtpSender AddTrack(IMediaStreamTrack track, string[] streamIds)
        {
            var rtpSender = _peerConnection.AddTrack(track.ToNative <RTCMediaStreamTrack>(), streamIds);

            if (rtpSender == null)
            {
                return(null);
            }
            return(new RtpSenderNative(rtpSender));
        }
Exemplo n.º 2
0
        public IRtpTransceiver AddTransceiverWithTrack(IMediaStreamTrack track)
        {
            var rtpTransceiver = _peerConnection.AddTransceiverWithTrack(track.ToNative <RTCMediaStreamTrack>());

            if (rtpTransceiver == null)
            {
                return(null);
            }
            return(new RtpTransceiverNative(rtpTransceiver));
        }
Exemplo n.º 3
0
        public IRtpSender AddTrack(IMediaStreamTrack track, string[] streamIds)
        {
            var rtpSender = new RtpSenderNative(_peerConnection.AddTrack(track.ToNative(), streamIds));

            return(rtpSender);
        }
Exemplo n.º 4
0
 public static MediaStreamTrack ToNative(this IMediaStreamTrack self)
 {
     return(self.ToNative <MediaStreamTrack>());
 }