Exemplo n.º 1
0
 public IRTCRtpTransceiver AddTransceiver(MediaStreamTrackKind kind, RTCRtpTransceiverInit init)
 {
     if (init is null)
     {
         return(RTCRtpTransceiver.Create(((Webrtc.RTCPeerConnection)NativeObject).AddTransceiverOfType(
                                             kind.ToNative())));
     }
     else
     {
         return(RTCRtpTransceiver.Create(((Webrtc.RTCPeerConnection)NativeObject).AddTransceiverOfType(
                                             kind.ToNative(), init.ToNative())));
     }
 }
Exemplo n.º 2
0
 public IRTCRtpTransceiver AddTransceiver(IMediaStreamTrack track, RTCRtpTransceiverInit init)
 {
     if (init is null)
     {
         return(RTCRtpTransceiver.Create(((Webrtc.RTCPeerConnection)NativeObject).AddTransceiverWithTrack(
                                             (Webrtc.RTCMediaStreamTrack)track.NativeObject)));
     }
     else
     {
         return(RTCRtpTransceiver.Create(((Webrtc.RTCPeerConnection)NativeObject).AddTransceiverWithTrack(
                                             (Webrtc.RTCMediaStreamTrack)track.NativeObject, init.ToNative())));
     }
 }