-
Open Project in Android Studio
-
Connect physical Android device to your computer, and select it in "Run" dropdown at top.
-
Wait for Android Studio to sync the project files
-
Click Green run arrow to build and run test app.
Set connection listener object containing the following available callbacks:
- onStreamNotFound()
- Called when 404 received from discovery endpoint.
- onConnectSuccess()
- Called when websocket successfully connects.
- onConnectFailure()
- Called when websocket fails to connect.
- onDisconnect()
- Called when peer connection is closed after an unsubscribe.
- onSubscribeStart()
- Called when subscribe is called.
- onSubscribeFail()
- Called when subscribe fails.
- onSubscribeStop()
- onWebRTCPeerConnectionAvailable()
- Called when peer connection is established.
- onWebRTCOfferStart()
- Called when WebRTC offer is first being generated by client.
- onWebRTCOfferEnd()
- Called when WebRTC offer generation is complete.
- onWebRTCAnswerStart()
- Called when WebRTC answer is received by client.
- onWebRTCAnswerEnd()
- Called when WebRTC remote description is set or setting of remote description fails.
- onWebRTCCandidateStart()
- Called when local description is set and as local candidates are about to begin.
- onWebRTCCandidateEnd()
- Called when local WebRTC locals candidates are ready and signalling state is table.
- onWebRTCIceTrickleComplete()
- Called when Ice Connection State is "Completed"
- onProfilesReceived(ArrayList profiles)
- Called when list of active profiles is received from server.
Set data channel listener with the following available callbacks:
- onDataObjectMessage(LLDataMessage msg)
- Callback for a received data message.
- onDataObjectUpdateResponse(LLUpdateResponseMessage msg)
- Callback for a received update to the data object.
- onDataObjectBroadcast(LLDataBroadcastMessage msg)
- Callback for a receied broadcast message.
Broadcasts a message on the data channel.
Requests the specified variant from the backend.
Returns the current playback variant.
Returns the available profiles
Subscribes to the stream specified in the configuration object. Specify iceRestart = true
if only restarting ICE.
Unsubscribes from the stream. Specify iceRestart = true
if only unsubscribing to restart ICE.
Returns the native playback MediaStream object.
Returns the native PeerConnection
Sets volume (1-10)
Update key-value pair in data object.
Add item to list in key.
Delete key-value pair from data object.
Increment kay-value pair.
Decrement key-value pair.
Compare and swap key-value pair. (Replace value if equal to compare param)