Agora RTC Objective-C API Reference
Refactor
|
Inherits <NSObject>.
Properties | |
NSString *_Nullable | url |
NSString *_Nullable | uri |
NSUInteger | startPos |
BOOL | autoPlay |
BOOL | enableCache |
BOOL | isAgoraSource |
BOOL | isLiveSource |
AgoraRtcMediaPlayerCustomSourceOnReadCallback _Nonnull | playerOnReadCallback |
|
readwritenonatomiccopy |
The URL of the media file that you want to play.
|
readwritenonatomiccopy |
The URI of the media file.
|
readwritenonatomicassign |
Set the starting position for playback, in seconds (ms)
|
readwritenonatomicassign |
Determines whether to autoplay after opening a media resource.
YES
: (Default) Autoplay after opening a media resource.NO
: Do not autoplay after opening a media resource.
|
readwritenonatomicassign |
Determines whether to enable cache streaming to local files. If enable cached, the media player will use the url or uri as the cache index.
YES
: Enable cache.NO
: (Default) Disable cache.
|
readwritenonatomicassign |
Determines whether the opened media resource is a stream through the Agora Broadcast Streaming Network(CDN).
YES
: It is a stream through the Agora Broadcast Streaming Network.NO
: (Default) It is not a stream through the Agora Broadcast Streaming Network.
|
readwritenonatomicassign |
Determines whether the opened media resource is a live stream. If is a live stream, it can speed up the opening of media resources.
YES
: It is a live stream.NO
: (Default) It is not is a live stream.
|
readwritenonatomiccopy |
External custom data source callback
|
readwritenonatomiccopy |