Agora Java API Reference for Android
|
Public Attributes | |
const char * | url |
const char * | uri |
int64_t | startPos |
bool | autoPlay |
bool | enableCache |
Optional< bool > | isAgoraSource |
Optional< bool > | isLiveSource |
IMediaPlayerCustomDataProvider * | provider |
const char* agora::media::base::MediaSource::url |
The URL of the media file that you want to play.
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.
int64_t agora::media::base::MediaSource::startPos |
Set the starting position for playback, in ms.
bool agora::media::base::MediaSource::autoPlay |
Autoplay when media source is opened
bool agora::media::base::MediaSource::enableCache |
Enable caching.
Optional<bool> agora::media::base::MediaSource::isAgoraSource |
if the value is true, it means playing agora URL. The default value is false
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
IMediaPlayerCustomDataProvider* agora::media::base::MediaSource::provider |
External custom data source object