Agora Java API Reference for Android
Public Member Functions | Protected Member Functions | List of all members
io.agora.rte.PlayerInfo Class Reference

Public Member Functions

long getNativeHandle ()
 
int state ()
 
long duration ()
 
int streamCount ()
 
boolean hasAudio ()
 
boolean hasVideo ()
 
boolean isAudioMuted ()
 
boolean isVideoMuted ()
 
int videoHeight ()
 
int videoWidth ()
 
Constants.AbrSubscriptionLayer abrSubscriptionLayer ()
 
int audioSampleRate ()
 
int audioChannels ()
 
int audioBitsPerSample ()
 

Protected Member Functions

void finalize ()
 

Detailed Description

Player information. When the playerInfo information changes, it will be notified through the PlayerObserver.onPlayerInfoUpdated callback. It can also be actively obtained through the Player.getInfo interface.

Since
v4.4.0

Member Function Documentation

◆ state()

int io.agora.rte.PlayerInfo.state ( )

Current player state.

◆ duration()

long io.agora.rte.PlayerInfo.duration ( )

Reserved parameter.

◆ streamCount()

int io.agora.rte.PlayerInfo.streamCount ( )

Reserved parameter.

◆ hasAudio()

boolean io.agora.rte.PlayerInfo.hasAudio ( )

Whether there is an audio stream. When opening an rte URL, it indicates whether the broadcaster is pushing an audio stream.

◆ hasVideo()

boolean io.agora.rte.PlayerInfo.hasVideo ( )

Whether there is a video stream. When opening an rte URL, it indicates whether the broadcaster is pushing a video stream.

◆ isAudioMuted()

boolean io.agora.rte.PlayerInfo.isAudioMuted ( )

Whether the audio is muted. Indicates whether the audience has subscribed to the audio stream.

◆ isVideoMuted()

boolean io.agora.rte.PlayerInfo.isVideoMuted ( )

Whether the video is muted. Indicates whether the audience has subscribed to the video stream.

◆ videoHeight()

int io.agora.rte.PlayerInfo.videoHeight ( )

Video resolution height.

◆ videoWidth()

int io.agora.rte.PlayerInfo.videoWidth ( )

Video resolution width.

◆ abrSubscriptionLayer()

Constants.AbrSubscriptionLayer io.agora.rte.PlayerInfo.abrSubscriptionLayer ( )

The currently subscribed video layer.

◆ audioSampleRate()

int io.agora.rte.PlayerInfo.audioSampleRate ( )

Audio sample rate.

◆ audioChannels()

int io.agora.rte.PlayerInfo.audioChannels ( )

Number of audio channels.

◆ audioBitsPerSample()

int io.agora.rte.PlayerInfo.audioBitsPerSample ( )

Reserved parameter.