|
Webrtc Unity Plugin
v01
Cross-platform Webrtc support for Unity apps ☁🎲
|
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... | |
| void UnityWebrtc.IPeerImpl.AddDataChannel | ( | ) |
Add a data channel
Implemented in UnityWebrtc.WebrtcPeerEvents.
| void UnityWebrtc.IPeerImpl.AddIceCandidate | ( | string | candidate, |
| int | sdpMlineindex, | ||
| string | sdpMid | ||
| ) |
Add an ice candidate
| candidate | sdp candidate data |
| sdpMlineindex | sdp mline index |
| sdpMid | sdp mid |
Implemented in UnityWebrtc.WebrtcPeerEvents.
| void UnityWebrtc.IPeerImpl.AddStream | ( | bool | audioOnly | ) |
Add a stream
| audioOnly | flag indicating if the stream should only contain audio |
Implemented in UnityWebrtc.WebrtcPeerEvents.
| void UnityWebrtc.IPeerImpl.ClosePeerConnection | ( | ) |
Close the peer connection
Implemented in UnityWebrtc.WebrtcPeerEvents.
| void UnityWebrtc.IPeerImpl.CreateAnswer | ( | ) |
Create an sdp answer
Implemented in UnityWebrtc.WebrtcPeerEvents.
| void UnityWebrtc.IPeerImpl.CreateOffer | ( | ) |
Create an sdp offer
Implemented in UnityWebrtc.WebrtcPeerEvents.
| int UnityWebrtc.IPeerImpl.GetUniqueId | ( | ) |
| void UnityWebrtc.IPeerImpl.SendDataViaDataChannel | ( | string | data | ) |
Send data via the created data channel
Must call AddDataChannel first
| data | data to send |
Implemented in UnityWebrtc.WebrtcPeerEvents.
| void UnityWebrtc.IPeerImpl.SetAudioControl | ( | bool | isMute, |
| bool | isRecord | ||
| ) |
Adjust audio controls
| isMute | is the stream muted |
| isRecord | is the stream recording data |
Implemented in UnityWebrtc.WebrtcPeerEvents.
| void UnityWebrtc.IPeerImpl.SetRemoteDescription | ( | string | type, |
| string | sdp | ||
| ) |
Set the remote stream description
Known valid types are "answer" and "offer"
| type | description type |
| sdp | sdp data |
Implemented in UnityWebrtc.WebrtcPeerEvents.