Class Participant

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

public class Participant extends Object
Room participant It is a user connected to the room
  • Constructor Details

    • Participant

      public Participant(String name, Room room)
      New participant
      Parameters:
      name -
      room -
  • Method Details

    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getStreamName

      public String getStreamName()
    • setStreamName

      public void setStreamName(String streamName)
    • getStream

      public Stream getStream()
    • play

      public Stream play(org.webrtc.SurfaceViewRenderer renderer)
      Play stream associated with this participant and set participant.stream field
      Parameters:
      renderer -
      Returns:
      playing back stream object
    • stop

      public void stop()
      Stop playback stream associated with this participant
    • sendMessage

      public void sendMessage(String text)
      Send a text message to this participant
      Parameters:
      text -