public class StringeeRoom
extends Object
Represents a Stringee room.
Nested classes | |
---|---|
public interface StringeeRoomListener
|
Monitors room's events. |
Public methods | |
---|---|
String |
getId()
Return room id. |
boolean |
isRecorded()
Check whether the room is recorded. |
List<RemoteParticipant> |
getRemoteParticipants()
Get list of other participant in room. |
void |
setListener(StringeeRoomListener listener)
Sets a StringeeRoomListener object to monitor room's events. |
void |
publish(StringeeVideoTrack videoTrack, StatusListener listener)
Publish video track. |
void |
unpublish(StringeeVideoTrack videoTrack, StatusListener listener)
Unpublish video track. |
void |
subscribe(StringeeVideoTrack videoTrack, StringeeVideoTrack.Options
options, StatusListener listener)
Subscribe video track. |
void |
unsubscribe(StringeeVideoTrack videoTrack, StatusListener
listener)
Unsubscribe video track. |
void |
leave(boolean allClient, StatusListener listener)
Leave room. |
void |
sendMessage(JSONObject msg, StatusListener listener)
Send message to room. |
String getId()
Return room id.
boolean isRecorded()
Check whether the room is recorded.
List<RemoteParticipant> getRemoteParticipants()
Get list of other participant in room.
void setListener(StringeeRoomListener listener)
Sets a StringeeRoomListener object to monitor room's events.
Parameters | |
---|---|
listener |
The StringeeRoomListener instance. |
void publish(StringeeVideoTrack videoTrack, StatusListener listener)
Publish video track.
Parameters | |
---|---|
videoTrack |
A StringeeVideoTrack instance. |
listener |
A StatusListener instance. |
void unpublish(StringeeVideoTrack videoTrack, StatusListener listener)
Unpublish video track.
Parameters | |
---|---|
videoTrack |
A StringeeVideoTrack instance. |
listener |
A StatusListener instance. |
void subscribe(StringeeVideoTrack videoTrack, StringeeVideoTrack.Options options, StatusListener
listener)
Subscribe video track.
Parameters | |
---|---|
videoTrack |
The StringeeVideoTrack instance. |
options |
The StringeeVideoTrack.Options instance. |
listener |
The StatusListener instance. |
void unsubscribe(StringeeVideoTrack videoTrack, StatusListener listener)
Unsubscribe video track.
Parameters | |
---|---|
videoTrack |
The StringeeVideoTrack instance. |
listener |
The StatusListener instance. |
void leave(boolean allClient, StatusListener listener)
Leave room.
Parameters | |
---|---|
allClient |
True is all sample userId on another devices leave, false is only user in device leave. |
listener |
The StatusListener instance. |
void sendMessage(JSONObject msg, StatusListener listener)
Send message to room.
Parameters | |
---|---|
msg |
The message in type JSONObject |
listener |
The StatusListener instance. |