Class Room

java.lang.Object
com.flashphoner.fpwcsapi.room.Room

public class Room extends Object
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 Details

    • Room

      public Room(RoomOptions options, RoomManager roomManager)
      New room using options and roomManager
      Parameters:
      options -
      roomManager -
  • Method Details

    • leave

      public void leave(RestAppCommunicator.Handler handler)
      Leave the room and stop publishing stream associated with this room
      Parameters:
      handler -
    • publish

      public Stream publish(org.webrtc.SurfaceViewRenderer renderer, StreamOptions streamOptions)
      Publish a stream within the room
      Parameters:
      renderer - is an UI element where the stream will be displayed
      streamOptions - options for published stream
      Returns:
    • publish

      public Stream publish(org.webrtc.SurfaceViewRenderer renderer)
      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

      public void on(RoomEvent roomEvent)
      Add the RoomEvent listener.
      Parameters:
      roomEvent -
    • getName

      public String getName()
    • getParticipants

      public Collection<Participant> getParticipants()
      Get collection of participants connected to this room
      Returns:
      participants collection