|
Agora RTC Objective-C API Reference
Refactor
|
Inherits <NSObject>.
Instance Methods | |
| (void) | - AgoraRtcMediaPlayer:didChangedToState:reason: |
| (void) | - AgoraRtcMediaPlayer:didChangedToPosition:atTimestamp: |
| (void) | - AgoraRtcMediaPlayer:didOccurEvent:elapsedTime:message: |
| (void) | - AgoraRtcMediaPlayer:didReceiveData:length: |
| (void) | - AgoraRtcMediaPlayer:didPlayBufferUpdated: |
| (void) | - AgoraRtcMediaPlayer:didPreloadEvent: |
| (void) | - AgoraRtcMediaPlayer:playerSrcInfoDidChange:from: |
| (void) | - AgoraRtcMediaPlayer:infoUpdated: |
| (void) | - AgoraRtcMediaPlayer:cacheStats: |
| (void) | - AgoraRtcMediaPlayer:playbackStats: |
| (void) | - onAgoraCDNTokenWillExpire |
| (void) | - AgoraRtcMediaPlayer:volumeIndicationDidReceive: |
|
optional |
Reports the playback state change.
| playerKit | AgoraRtcMediaPlayer |
| state | The new playback state after change. See AgoraMediaPlayerState. |
| reason | The player's error code. See AgoraMediaPlayerReason. |
|
optional |
Reports current playback progress.
The callback occurs once every one second during the playback and reports current playback progress.
| playerKit | AgoraMediaPlayer |
| positionMs | Current playback progress (ms). |
| timestampMs | The NTP timestamp (ms) when the position is sent. |
|
optional |
Reports the result of the seek operation.
| playerKit | AgoraRtcMediaPlayer |
| eventCode | AgoraMediaPlayerEvent |
| elapsedTime | The playback elapsed time. |
| message | NSString |
|
optional |
Reports the reception of the media metadata.
The callback occurs when the player receivers the media metadata and reports the detailed information of the media metadata.
| playerKit | AgoraRtcMediaPlayer |
| data | The detailed data of the media metadata. |
| length | The length (byte) of the data. |
|
optional |
Triggered when play buffer updated, once every 1 second.
| playerKit | AgoraRtcMediaPlayer |
| playCachedBuffer | NSInteger |
|
optional |
Triggered when the player preloadSrc.
| playerKit | AgoraRtcMediaPlayer |
| event | AgoraMediaPlayerPreloadEvent |
|
optional |
Reports current playback source bitrate changed.
| to | Streaming media information after the change. |
| from | Streaming media information before the change. |
|
optional |
Triggered when media player information updated.
| info | Include information of media player. |
|
optional |
Triggered every 1 second, reports the statistics of the files being cached.
| stats | Cached file statistics. |
|
optional |
Triggered every 1 second, reports the statistics of the media stream being played.
| stats | The statistics of the media stream. |
|
optional |
AgoraCDN Token has expired and needs to be set up with renewAgoraCDNSrcToken(const char* src).
|
optional |
Triggered when play volume updated, once every 200 millisecond.
| volume | volume of current player. |