Media Player Kit v1.3.0 API Reference for Windows
Public Attributes | List of all members
agora::rtc::MediaPlayerContext Struct Reference

Public Attributes

bool enable_chat_voice_mode = false
 
void * context = nullptr
 

Detailed Description

The MediaPlayerContext struct.

Note
  • When you use the Agora RTC Native SDK and MediaPlayer Kit at the same time, if the AUDIO_SCENARIO_TYPE of the Native SDK is AUDIO_SCENARIO_GAME_STREAMING (3), Agora recommends that you set the MediaPlayer Kit to use the media volume and integrate the helper at the same time.
  • When you use the Agora RTC Native SDK and MediaPlayer Kit at the same time, if the AUDIO_SCENARIO_TYPE of the Native SDK is not AUDIO_SCENARIO_GAME_STREAMING (3), Agora recommends that you set the MediaPlayer Kit to use the call volume.

Member Data Documentation

◆ enable_chat_voice_mode

bool agora::rtc::MediaPlayerContext::enable_chat_voice_mode = false

Whether to enable the mode for voice chat:

  • YES: Enable the mode for voice chat. The mediaplayer kit uses the call volume and cannot be set to 0.
  • NO: (Default) Disable the mode for voice chat. The mediaplayer kit uses the media volume. Compared with the call volume, the media volume has better sound performance and can be adjusted to 0, which is more suitable for playing the media resources.

◆ context

void* agora::rtc::MediaPlayerContext::context = nullptr

The MediaPlayer Kit context.