RtePlayerInfo

Statistics of the player and media stream.

typedef struct RtePlayerInfo {
  RtePlayerState state;
  size_t duration;
  size_t stream_count;
  bool has_audio;
  bool has_video;
  bool is_audio_muted;
  bool is_video_muted;
  int video_height;
  int video_width;
  RteAbrSubscriptionLayer abr_subscription_layer;
  int audio_sample_rate;
  int audio_channels;
  int audio_bits_per_sample;
} RtePlayerInfo;
Since
v4.5.0

Attributes

state
The current player state. See RtePlayerState.
duration
Reserved for future use.
stream_countç
Reserved for future use.
has_audio
Whether there is audio in the URL media stream.
  • true: Yes.
  • false: No.
has_video
Whether there is video in the URL media stream.
  • true: Yes.
  • false: No.
is_audio_muted
Whether the local user has subscribed to the audio stream:
  • true: No.
  • false: Yes.
is_video_muted
Whether the local user has subscribed to the video stream:
  • true: No.
  • false: Yes.
video_height
The height (px) of the video frame.
video_width
The width (px) of the video frame.
abr_subscription_layer
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 RteAbrSubscriptionLayer.
audio_sample_rate
Recording sample rate (Hz).
audio_channels
The number of audio channels.
audio_bits_per_sample
Reserved for future use.