|
Agora Java API Reference for Android
|
Information about the player and media stream. More...
Public Member Functions | |
| long | getNativeHandle () |
| int | state () |
| long | duration () |
| Gets the duration of the current media resource. More... | |
| int | streamCount () |
| Gets the stream count in the current playback source. More... | |
| boolean | hasAudio () |
| Determines whether the media resource contains an audio stream. More... | |
| boolean | hasVideo () |
| Determines whether a video stream is included. More... | |
| boolean | isAudioMuted () |
| Determines whether the player has stopped receiving the remote audio stream. More... | |
| boolean | isVideoMuted () |
| Determines whether the player has stopped receiving remote video streams. More... | |
| int | videoHeight () |
| Gets the height of the video resolution. More... | |
| int | videoWidth () |
| Gets the width of the video resolution. More... | |
| Constants.AbrSubscriptionLayer | abrSubscriptionLayer () |
| Gets the current subscribed video layer. More... | |
| int | audioSampleRate () |
| Gets the audio sample rate. More... | |
| int | audioChannels () |
| int | audioBitsPerSample () |
| Gets the number of bits per audio sampling point. More... | |
| String | currentUrl () |
| Gets the URL that is currently being played. More... | |
Protected Member Functions | |
| void | finalize () |
Information about the player and media stream.
| int io.agora.rte.PlayerInfo.state | ( | ) |
Current player state.
| long io.agora.rte.PlayerInfo.duration | ( | ) |
Gets the duration of the current media resource.
| int io.agora.rte.PlayerInfo.streamCount | ( | ) |
Gets the stream count in the current playback source.
This method is only valid when opening a non-RTE URL.
| boolean io.agora.rte.PlayerInfo.hasAudio | ( | ) |
Determines whether the media resource contains an audio stream.
Indicates whether the URL source contains an audio stream.
true: The URL source contains an audio stream.false: The URL source does not contain an audio stream. | boolean io.agora.rte.PlayerInfo.hasVideo | ( | ) |
Determines whether a video stream is included.
true: The URL source contains a video stream.false: The URL source does not contain a video stream. | boolean io.agora.rte.PlayerInfo.isAudioMuted | ( | ) |
Determines whether the player has stopped receiving the remote audio stream.
This method determines whether the player has stopped receiving the remote audio stream.
true: The remote audio stream has stopped being received.false: The remote audio stream is still being received. | boolean io.agora.rte.PlayerInfo.isVideoMuted | ( | ) |
Determines whether the player has stopped receiving remote video streams.
IsVideoMuted API is only effective when an RTE URL is opened.true: Stops receiving remote video streams.false: Continues receiving remote video streams. | int io.agora.rte.PlayerInfo.videoHeight | ( | ) |
Gets the height of the video resolution.
| int io.agora.rte.PlayerInfo.videoWidth | ( | ) |
Gets the width of the video resolution.
| Constants.AbrSubscriptionLayer io.agora.rte.PlayerInfo.abrSubscriptionLayer | ( | ) |
Gets the current subscribed video layer.
This field is only valid when opening an RTE URL.
AbrSubscriptionLayer object. See AbrSubscriptionLayer for details. | int io.agora.rte.PlayerInfo.audioSampleRate | ( | ) |
Gets the audio sample rate.
| int io.agora.rte.PlayerInfo.audioChannels | ( | ) |
Number of audio channels.
| int io.agora.rte.PlayerInfo.audioBitsPerSample | ( | ) |
Gets the number of bits per audio sampling point.
| String io.agora.rte.PlayerInfo.currentUrl | ( | ) |
Gets the URL that is currently being played.
1.8.18