Class RTCPeerConnection
Inheritance
RTCPeerConnection
Syntax
public class RTCPeerConnection : IDisposable
Constructors
RTCPeerConnection()
Declaration
public RTCPeerConnection()
RTCPeerConnection(ref RTCConfiguration)
Declaration
public RTCPeerConnection(ref RTCConfiguration config)
Parameters
Fields
OnStatsDelivered
Declaration
public Action<string> OnStatsDelivered
Field Value
Properties
ConnectionState
Declaration
public RTCPeerConnectionState ConnectionState { get; }
Property Value
CurrentLocalDescription
Declaration
public RTCSessionDescription CurrentLocalDescription { get; }
Property Value
CurrentRemoteDescription
Declaration
public RTCSessionDescription CurrentRemoteDescription { get; }
Property Value
IceConnectionState
Declaration
public RTCIceConnectionState IceConnectionState { get; }
Property Value
LocalDescription
Declaration
public RTCSessionDescription LocalDescription { get; }
Property Value
OnDataChannel
Declaration
public DelegateOnDataChannel OnDataChannel { get; set; }
Property Value
OnIceCandidate
Declaration
public DelegateOnIceCandidate OnIceCandidate { get; set; }
Property Value
OnIceConnectionChange
Declaration
public DelegateOnIceConnectionChange OnIceConnectionChange { get; set; }
Property Value
OnNegotiationNeeded
Declaration
public DelegateOnNegotiationNeeded OnNegotiationNeeded { get; set; }
Property Value
OnTrack
Declaration
public DelegateOnTrack OnTrack { get; set; }
Property Value
PendingLocalDescription
Declaration
public RTCSessionDescription PendingLocalDescription { get; }
Property Value
PendingRemoteDescription
Declaration
public RTCSessionDescription PendingRemoteDescription { get; }
Property Value
RemoteDescription
Declaration
public RTCSessionDescription RemoteDescription { get; }
Property Value
Methods
AddIceCandidate(ref RTCIceCandidate)
Declaration
public void AddIceCandidate(ref RTCIceCandidate candidate)
Parameters
Declaration
public RTCRtpSender AddTrack(MediaStreamTrack track, MediaStream stream = null)
Parameters
Returns
Declaration
public RTCRtpTransceiver AddTransceiver(MediaStreamTrack track)
Parameters
Returns
Close()
Declaration
CollectStats()
Declaration
public void CollectStats()
CreateAnswer(ref RTCAnswerOptions)
Declaration
public RTCSessionDescriptionAsyncOperation CreateAnswer(ref RTCAnswerOptions options)
Parameters
Returns
CreateDataChannel(String, ref RTCDataChannelInit)
Declaration
public RTCDataChannel CreateDataChannel(string label, ref RTCDataChannelInit options)
Parameters
Returns
CreateOffer(ref RTCOfferOptions)
Declaration
public RTCSessionDescriptionAsyncOperation CreateOffer(ref RTCOfferOptions options)
Parameters
Returns
Dispose()
Declaration
Finalize()
Declaration
protected void Finalize()
GetConfiguration()
Declaration
public RTCConfiguration GetConfiguration()
Returns
GetReceivers()
Declaration
public IEnumerable<RTCRtpReceiver> GetReceivers()
Returns
GetSenders()
Declaration
public IEnumerable<RTCRtpSender> GetSenders()
Returns
GetTransceivers()
Declaration
public IEnumerable<RTCRtpTransceiver> GetTransceivers()
Returns
RemoveTrack(RTCRtpSender)
Declaration
public void RemoveTrack(RTCRtpSender sender)
Parameters
SetConfiguration(ref RTCConfiguration)
Declaration
public RTCErrorType SetConfiguration(ref RTCConfiguration config)
Parameters
Returns
SetLocalDescription(ref RTCSessionDescription)
Declaration
public RTCSetSessionDescriptionAsyncOperation SetLocalDescription(ref RTCSessionDescription desc)
Parameters
Returns
SetRemoteDescription(ref RTCSessionDescription)
Declaration
public RTCSetSessionDescriptionAsyncOperation SetRemoteDescription(ref RTCSessionDescription desc)
Parameters
Returns