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()))); } }
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()))); } }
public IRTCRtpTransceiver[] GetTransceivers() => ((Webrtc.RTCPeerConnection)NativeObject).Transceivers .Select(nativeTransceiver => RTCRtpTransceiver.Create(nativeTransceiver)).ToArray();