PlayerInfo
Statistics of the player and media stream.
public class PlayerInfo {
public int state();
public long duration();
public int streamCount();
public boolean hasAudio();
public boolean hasVideo();
public boolean isAudioMuted();
public boolean isVideoMuted();
public int videoHeight();
public int videoWidth();
public Constants.AbrSubscriptionLayer abrSubscriptionLayer();
public int audioSampleRate();
public int audioChannels();
public int audioBitsPerSample();
}
- Since
- v4.5.0
Attributes
- state
- The current player state. See PlayerState.
- duration
- Reserved for future use.
- streamCount
- Reserved for future use.
- hasAudio
- Whether there is audio in the URL media stream.
true: Yes.false: No.
- hasVideo
- Whether there is video in the URL media stream.
true: Yes.false: No.
- isAudioMuted
- Whether the local user has subscribed to the audio stream:
true: No.false: Yes.
- isVideoMuted
- Whether the local user has subscribed to the video stream:
true: No.false: Yes.
- videoHeight
- The height (px) of the video frame.
- videoWidth
- The width (px) of the video frame.
- abrSubscriptionLayer
- The quality level of the subscribed video stream: In the ABR (Adaptive Bitrate Streaming) mode, different video quality level corresponds to different video resolutions and bitrates. See AbrSubscriptionLayer.
- audioSampleRate
- Recording sample rate (Hz).
- audioChannels
- The number of audio channels.
- audioBitsPerSample
- Reserved for future use.