Agora Java API Reference for Android
Public Attributes | List of all members
agora::media::base::MediaSource Struct Reference

Public Attributes

const char * url
 
const char * uri
 
int64_t startPos
 
bool autoPlay
 
bool enableCache
 
Optional< bool > isAgoraSource
 
Optional< bool > isLiveSource
 
IMediaPlayerCustomDataProviderprovider
 

Member Data Documentation

◆ url

const char* agora::media::base::MediaSource::url

The URL of the media file that you want to play.

◆ uri

const char* agora::media::base::MediaSource::uri

The URI of the media file

When caching is enabled, if the url cannot distinguish the cache file name, the uri must be able to ensure that the cache file name corresponding to the url is unique.

◆ startPos

int64_t agora::media::base::MediaSource::startPos

Set the starting position for playback, in ms.

◆ autoPlay

bool agora::media::base::MediaSource::autoPlay

Autoplay when media source is opened

◆ enableCache

bool agora::media::base::MediaSource::enableCache

Enable caching.

◆ isAgoraSource

Optional<bool> agora::media::base::MediaSource::isAgoraSource

if the value is true, it means playing agora URL. The default value is false

◆ isLiveSource

Optional<bool> agora::media::base::MediaSource::isLiveSource

If it is set to true, it means that the live stream will be optimized for quick start. The default value is false

◆ provider

IMediaPlayerCustomDataProvider* agora::media::base::MediaSource::provider

External custom data source object