|
Agora Java API Reference for Android
|
Public Member Functions | |
| long | getNativeHandle () |
| int | state () |
| long | duration () |
| Get the duration time of the current media source. More... | |
| int | streamCount () |
| boolean | hasAudio () |
| boolean | hasVideo () |
| boolean | isAudioMuted () |
| Whether player stops receiving the audio stream. More... | |
| boolean | isVideoMuted () |
| Whether player stops receiving the video stream. More... | |
| int | videoHeight () |
| Get the video resolution height. More... | |
| int | videoWidth () |
| Get the video resolution width. More... | |
| Constants.AbrSubscriptionLayer | abrSubscriptionLayer () |
| int | audioSampleRate () |
| Get the audio sample rate. More... | |
| int | audioChannels () |
| int | audioBitsPerSample () |
| Get the audio bits per sample. More... | |
| String | currentUrl () |
Protected Member Functions | |
| void | finalize () |
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.
| int io.agora.rte.PlayerInfo.state | ( | ) |
Current player state.
| long io.agora.rte.PlayerInfo.duration | ( | ) |
Get the duration time of the current media source.
| int io.agora.rte.PlayerInfo.streamCount | ( | ) |
Stream count. This field is only valid when opening a non-RTE URL.
| boolean io.agora.rte.PlayerInfo.hasAudio | ( | ) |
Whether there is an audio stream. Indicates whether the url source contains the audio stream.
| boolean io.agora.rte.PlayerInfo.hasVideo | ( | ) |
Whether there is a video stream. Indicates whether the url source contains the video stream.
| boolean io.agora.rte.PlayerInfo.isAudioMuted | ( | ) |
Whether player stops receiving the audio stream.
Indicates whether the player stops receiving the audio stream.
| boolean io.agora.rte.PlayerInfo.isVideoMuted | ( | ) |
Whether player stops receiving the video stream.
Indicates whether the player stops receiving the video stream.
| int io.agora.rte.PlayerInfo.videoHeight | ( | ) |
Get the video resolution height.
| int io.agora.rte.PlayerInfo.videoWidth | ( | ) |
Get the video resolution width.
| Constants.AbrSubscriptionLayer io.agora.rte.PlayerInfo.abrSubscriptionLayer | ( | ) |
The currently subscribed video layer. This field is only valid when you open an RTE URL.
| int io.agora.rte.PlayerInfo.audioSampleRate | ( | ) |
Get the audio sample rate.
| int io.agora.rte.PlayerInfo.audioChannels | ( | ) |
Number of audio channels.
| int io.agora.rte.PlayerInfo.audioBitsPerSample | ( | ) |
Get the audio bits per sample.
| String io.agora.rte.PlayerInfo.currentUrl | ( | ) |
The URL being played.
1.8.18