Suggestions

close search

StringeeRoom

public class StringeeRoom
extends Object



Represents a Stringee room.



Summary


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.



Public methods


getId

String getId()

Return room id.



isRecorded

boolean isRecorded()

Check whether the room is recorded.



getRemoteParticipants

List<RemoteParticipant> getRemoteParticipants()

Get list of other participant in room.



setListener

void setListener(StringeeRoomListener listener)

Sets a StringeeRoomListener object to monitor room's events.

Parameters
listener

The StringeeRoomListener instance.



publish

void publish(StringeeVideoTrack videoTrack, StatusListener listener)

Publish video track.

Parameters
videoTrack

A StringeeVideoTrack instance.

listener

A StatusListener instance.



unpublish

void unpublish(StringeeVideoTrack videoTrack, StatusListener listener)

Unpublish video track.

Parameters
videoTrack

A StringeeVideoTrack instance.

listener

A StatusListener instance.



subscribe

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.



unsubscribe

void unsubscribe(StringeeVideoTrack videoTrack, StatusListener listener)

Unsubscribe video track.

Parameters
videoTrack

The StringeeVideoTrack instance.

listener

The StatusListener instance.



leave

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.



sendMessage

void sendMessage(JSONObject msg, StatusListener listener)

Send message to room.

Parameters
msg

The message in type JSONObject

listener

The StatusListener instance.