Package 

Class Room

  • All Implemented Interfaces:
    com.twilio.video.AudioProcessorSupportCheck

    
    public class Room
     implements AudioProcessorSupportCheck
                        

    A Room represents a media session with zero or more remote Participants. Media shared by any one RemoteParticipant is distributed equally to all other Participants.

    A subset of Android devices provide an OpenSLES implementation. Although more efficient, the use of OpenSLES occasionally results in echo. As a result, the Video SDK disables OpenSLES by default unless explicitly enabled. To enable OpenSLES, execute the following before invoking {@code Video.connect(...)}

    {@code tvi.webrtc.voiceengine.WebRtcAudioManager.setBlacklistDeviceForOpenSLESUsage(false)}

    • Method Detail

      • getName

        @NonNull() String getName()

        Returns the name of the current room. This method will return the SID if the room was createdwithout a name.

      • getMediaRegion

        @Nullable() String getMediaRegion()

        Returns the region where media is processed. This property is set in Group Rooms by the timethe Room reaches CONNECTED. This method returns {@code null} under thefollowing conditions:

        • The Room has not reached the CONNECTED state.
        • The instance represents a peer-to-peer Room.
      • getDominantSpeaker

        @Nullable() RemoteParticipant getDominantSpeaker()

        Returns the dominant speaker of the Room.

        To enable this feature, add an invocation of with {@code true} when building your . This method returns {@code null} when one of the following conditions aretrue:

        • The Room topology is P2P.
        • The dominant speaker feature was not enabled via .
        • There is currently no dominant speaker.
      • isRecording

         synchronized boolean isRecording()

        Returns whether any media in the Room is being recorded.

      • getStats

         synchronized void getStats(@NonNull() StatsListener statsListener)

        Retrieve stats for all media tracks and notify StatsListener via calling thread. Incase where room is in DISCONNECTED state, reports won't be delivered.

        Parameters:
        statsListener - listener that receives stats reports for all media tracks.
      • disconnect

         synchronized void disconnect()

        Disconnects from the room.

      • isAudioProcessorSupported

         boolean isAudioProcessorSupported(String audioProcessorName)

        DO NOT USE, For internal use only, verifies if audio processor is supported.