Package com.flashphoner.fpwcsapi.room
Class Room
java.lang.Object
com.flashphoner.fpwcsapi.room.Room
Room object represents a virtual room with a set of connected participants. See
Participant
The room participants can play streams each other.
The room participants can do mesage exchange.-
Constructor Summary
ConstructorsConstructorDescriptionRoom(RoomOptions options, RoomManager roomManager) New room using options and roomManager -
Method Summary
Modifier and TypeMethodDescriptiongetName()Get collection of participants connected to this roomvoidleave(RestAppCommunicator.Handler handler) Leave the room and stop publishing stream associated with this roomvoidAdd the RoomEvent listener.publish(org.webrtc.SurfaceViewRenderer renderer) Publish a stream within the roompublish(org.webrtc.SurfaceViewRenderer renderer, StreamOptions streamOptions) Publish a stream within the roomvoidUnpublish previously published stream
-
Constructor Details
-
Room
New room using options and roomManager- Parameters:
options-roomManager-
-
-
Method Details
-
leave
Leave the room and stop publishing stream associated with this room- Parameters:
handler-
-
publish
Publish a stream within the room- Parameters:
renderer- is an UI element where the stream will be displayedstreamOptions- options for published stream- Returns:
-
publish
Publish a stream within the room- Parameters:
renderer- is an UI element where the stream will be displayed- Returns:
-
unpublish
public void unpublish()Unpublish previously published stream -
on
Add the RoomEvent listener.- Parameters:
roomEvent-
-
getName
-
getParticipants
Get collection of participants connected to this room- Returns:
- participants collection
-