|
| void | Configure (MediaConfig config) |
| | Configures the local media stream allowing to activate the local camera and microphone.
|
| |
| MediaConfigurationState | GetConfigurationState () |
| | Returns the current state of the configuration process.
|
| |
| string | GetConfigurationError () |
| | Returns an error in case the configuration state is failed. (note this is not fully implemented)
|
| |
|
void | ResetConfiguration () |
| | Resets the configuration back to NoConfiguration. Can only be used during Failed state.
|
| |
| IFrame | TryGetFrame (ConnectionId id) |
| | Returns a RawFrame. This is a direct reference used internally and should not be accessed after the next Update call.
|
| |
| void | SetVolume (double volume, ConnectionId remoteUserId) |
| | Sets a volume for the replay of a remote connections audio stream.
|
| |
| bool | HasAudioTrack (ConnectionId remoteUserId) |
| | Checks if the connection with the given id has a media stream with an audio track attached.
|
| |
| bool | HasVideoTrack (ConnectionId remoteUserId) |
| | Checks if the connection with the given id has a media stream with an video track attached.
|
| |
| bool | IsMute () |
| | Checks if the microphone is muted. True means it is muted. False means it isn't muted (via this system). This doesn't mean the microphone is actually sending. It still can be muted within the OS or via the physicial device.
|
| |
| void | SetMute (bool val) |
| | Allows to mute the microphone. True = mute False = send the microphone data if available.
|
| |
| int | GetBufferedAmount (ConnectionId id, bool reliable) |
| | Still experimental. Only supported for Native platforms so far.
|
| |
| void | StartServer (string address=null) |
| | Starts a server + asking for it to have a certain address. The use of the address is not guaranteed. If the address is in use the underlying system will return ServerConnectionFailed. (This can also be triggered if anything else fails in the process)
|
| |
| void | StopServer () |
| | Stops incoming connections. This usually doesn't close existing connections thus can be used to enforce a certain amount of maximum allowed connections.
|
| |
| ConnectionId | Connect (string address) |
| | Connects to a given address or room name.
|
| |
| bool | Dequeue (out NetworkEvent evt) |
| | This will return the incoming network events. Call this method and handle the incoming events until it returns false.
|
| |
| bool | Peek (out NetworkEvent evt) |
| | Will return the first event in the queue without removing it.
|
| |
| void | Flush () |
| | Sends buffered data.
|
| |
| bool | SendData (ConnectionId id, byte[] data, int offset, int length, bool reliable) |
| | Sends the content of a byte array to the given connection.
|
| |
| void | Disconnect (ConnectionId id) |
| | Disconnects the given connection.
|
| |
| void | Shutdown () |
| | Disconnects all connection and shuts down the server if started. Dequeue will still return the confirmation messages such as Disconnected event for each connection.
|
| |
| void | Update () |
| | Call this every frame if you intend to read incoming messages using Dequeue. This will make sure all data is read received by the network.
|
| |
WebRtc network that allows access to video / audio functionality.
This interface will change a lot in the future. Avoid using this directly and use ICall whenever possible.