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
◆ state()
int io.agora.rte.PlayerInfo.state |
( |
| ) |
|
◆ duration()
long io.agora.rte.PlayerInfo.duration |
( |
| ) |
|
◆ streamCount()
int io.agora.rte.PlayerInfo.streamCount |
( |
| ) |
|
◆ 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 |
( |
| ) |
|
◆ videoWidth()
int io.agora.rte.PlayerInfo.videoWidth |
( |
| ) |
|
◆ abrSubscriptionLayer()
Constants.AbrSubscriptionLayer io.agora.rte.PlayerInfo.abrSubscriptionLayer |
( |
| ) |
|
The currently subscribed video layer.
◆ audioSampleRate()
int io.agora.rte.PlayerInfo.audioSampleRate |
( |
| ) |
|
◆ audioChannels()
int io.agora.rte.PlayerInfo.audioChannels |
( |
| ) |
|
Number of audio channels.
◆ audioBitsPerSample()
int io.agora.rte.PlayerInfo.audioBitsPerSample |
( |
| ) |
|