Operated WebRTC feature
Methods
ConnectToPeer
Connects to peer
Syntax
void ConnectToPeer( string _bsPeerID )
Parameters
_bsPeerID - peer ID
DisconnectPeer
Disconnects from peer
Syntax
void DisconnectPeer( string _bsPeerID )
Parameters
_bsPeerID - peer ID
GetPeerByIndex
Gets a peer by its index
Syntax
void GetPeerByIndex( int _nIndex, out string _pbsAccessName, out string _pbsPeerID )
Parameters
_nIndex - peer index
_pbsAccessName - access name
_pbsPeerID - peer ID
GetPeerProps
Syntax
void GetPeerProps( string _bsPeerID, out int _pnIndex, out string _pbsAccessName, out string _pbsPeerPropsList )
Parameters
_bsPeerID - peer ID
_pnIndex - peer index
_pbsAccessName - access name
_pbsPeerPropsList - properties of the peer
GetPeersCount
Gets count of peers
Syntax
void GetPeersCount( out int _pnCount )
Parameters
_pnCount - number of peers
Login
Logins to signaling server
Syntax
void Login( string _bsSigServerURL, string _bsAccessNameOrPropsList, out string _pbsPeerID )
Parameters
_bsSigServerURL - signaling server address
_bsAccessNameOrPropsList - access name or a list of properties
_pbsPeerID - peer ID
Logout
Logout from signalling server
Syntax
void Logout()
ObjectCallbackSet
Set callback for events handling
Syntax
void ObjectCallbackSet( IMCallback _pCallback, long _llCallbackUserData )
Parameters
_pCallback - callback object (realization of events)
_llCallbackUserData - user data
ObjectCallbackSetFunc
Sets callback functions
Syntax
void ObjectCallbackSetFunc( long _lpPFOnEvent, long _lpPFOnFrame, long _llCallbackUserData )
Parameters
_lpPFOnEvent - pointer to OnEvent event
_lpPFOnFrame - pointer to OnFrame event
_llCallbackUserData - user data
SendMessageToPeer
Sends message to peer
Syntax
void SendMessageToPeer( string _bsPeerID, string _bsMessage )
Parameters
_bsPeerID - peer ID
_bsMessage - string message