Agora RTC Objective-C API Reference  Refactor
Data Fields
MediaSource Struct Reference

Data Fields

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

Constructor & Destructor Documentation

◆ MediaSource()

MediaSource ( )
inline

Field Documentation

◆ url

const char* url

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

◆ uri

const char* 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 startPos

Set the starting position for playback, in ms.

◆ autoPlay

bool autoPlay

Autoplay when media source is opened

◆ enableCache

bool enableCache

Enable caching.

◆ isAgoraSource

Optional<bool> isAgoraSource

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

◆ isLiveSource

Optional<bool> 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

External custom data source object