Webrtc Unity Plugin  v01
Cross-platform Webrtc support for Unity apps ☁🎲
UnityWebrtc.IPeerImpl Interface Reference
Inheritance diagram for UnityWebrtc.IPeerImpl:
UnityWebrtc.IPeer UnityWebrtc.WebrtcPeerEvents

Public Member Functions

void ClosePeerConnection ()
 Close the peer connection More...
 
int GetUniqueId ()
 Get the unique id More...
 
void AddStream (bool audioOnly)
 Add a stream More...
 
void AddDataChannel ()
 Add a data channel More...
 
void CreateOffer ()
 Create an sdp offer More...
 
void CreateAnswer ()
 Create an sdp answer More...
 
void SendDataViaDataChannel (string data)
 Send data via the created data channel More...
 
void SetAudioControl (bool isMute, bool isRecord)
 Adjust audio controls More...
 
void SetRemoteDescription (string type, string sdp)
 Set the remote stream description More...
 
void AddIceCandidate (string candidate, int sdpMlineindex, string sdpMid)
 Add an ice candidate More...
 

Member Function Documentation

◆ AddDataChannel()

void UnityWebrtc.IPeerImpl.AddDataChannel ( )

Add a data channel

Implemented in UnityWebrtc.WebrtcPeerEvents.

◆ AddIceCandidate()

void UnityWebrtc.IPeerImpl.AddIceCandidate ( string  candidate,
int  sdpMlineindex,
string  sdpMid 
)

Add an ice candidate

Parameters
candidatesdp candidate data
sdpMlineindexsdp mline index
sdpMidsdp mid

Implemented in UnityWebrtc.WebrtcPeerEvents.

◆ AddStream()

void UnityWebrtc.IPeerImpl.AddStream ( bool  audioOnly)

Add a stream

Parameters
audioOnlyflag indicating if the stream should only contain audio

Implemented in UnityWebrtc.WebrtcPeerEvents.

◆ ClosePeerConnection()

void UnityWebrtc.IPeerImpl.ClosePeerConnection ( )

Close the peer connection

Implemented in UnityWebrtc.WebrtcPeerEvents.

◆ CreateAnswer()

void UnityWebrtc.IPeerImpl.CreateAnswer ( )

Create an sdp answer

Implemented in UnityWebrtc.WebrtcPeerEvents.

◆ CreateOffer()

void UnityWebrtc.IPeerImpl.CreateOffer ( )

Create an sdp offer

Implemented in UnityWebrtc.WebrtcPeerEvents.

◆ GetUniqueId()

int UnityWebrtc.IPeerImpl.GetUniqueId ( )

Get the unique id

Returns
unique id

Implemented in UnityWebrtc.WebrtcPeerEvents.

◆ SendDataViaDataChannel()

void UnityWebrtc.IPeerImpl.SendDataViaDataChannel ( string  data)

Send data via the created data channel

Must call AddDataChannel first

Parameters
datadata to send

Implemented in UnityWebrtc.WebrtcPeerEvents.

◆ SetAudioControl()

void UnityWebrtc.IPeerImpl.SetAudioControl ( bool  isMute,
bool  isRecord 
)

Adjust audio controls

Parameters
isMuteis the stream muted
isRecordis the stream recording data

Implemented in UnityWebrtc.WebrtcPeerEvents.

◆ SetRemoteDescription()

void UnityWebrtc.IPeerImpl.SetRemoteDescription ( string  type,
string  sdp 
)

Set the remote stream description

Known valid types are "answer" and "offer"

Parameters
typedescription type
sdpsdp data

Implemented in UnityWebrtc.WebrtcPeerEvents.


The documentation for this interface was generated from the following file: