Agora Java API Reference for Android
|
Public Member Functions | |
void | onStateChanged (AgoraRteFileInfo currentFileInfo, AgoraRteStreamingSrcState state, AgoraRteStreamingSrcError errCode) |
void | onOpenDone (AgoraRteFileInfo currentFileInfo, int errCode) |
void | onSeekDone (AgoraRteFileInfo currentFileInfo, int errCode) |
void | onEofOnce (AgoraRteFileInfo currentFileInfo, long progressMs, long repeatCount) |
void | onAllMediasCompleted (int errCode) |
void | onProgress (AgoraRteFileInfo currentFileInfo, long positionMs) |
void | onMetaData (AgoraRteFileInfo currentFileInfo, byte[] data, int length) |
void io.agora.rte.media.stream.AgoraRteStreamingSourceObserver.onStateChanged | ( | AgoraRteFileInfo | currentFileInfo, |
AgoraRteStreamingSrcState | state, | ||
AgoraRteStreamingSrcError | errCode | ||
) |
Reports the playback state change. When the state of the playback changes,the SDK triggers this callback to report the new playback state and the reason or error for the change.
currentFileInfo | current file information |
state | The new playback state after change. See {}. errCode The player's error code. See AgoraRteStreamingSrcError}. |
void io.agora.rte.media.stream.AgoraRteStreamingSourceObserver.onOpenDone | ( | AgoraRteFileInfo | currentFileInfo, |
int | errCode | ||
) |
Triggered when file is opened
currentFileInfo | current file information |
errCode | The error code, eumulate with AgoraRteErrorCodeType |
void io.agora.rte.media.stream.AgoraRteStreamingSourceObserver.onSeekDone | ( | AgoraRteFileInfo | currentFileInfo, |
int | errCode | ||
) |
Triggered when seeking is done
currentFileInfo | current file information |
errCode | The error code, eumulate with AgoraRteErrorCodeType |
void io.agora.rte.media.stream.AgoraRteStreamingSourceObserver.onEofOnce | ( | AgoraRteFileInfo | currentFileInfo, |
long | progressMs, | ||
long | repeatCount | ||
) |
Triggered when one file playing is end
currentFileInfo | current file information |
progressMs | the progress position |
repeatCount | means repeated count of playing |
void io.agora.rte.media.stream.AgoraRteStreamingSourceObserver.onAllMediasCompleted | ( | int | errCode | ) |
Occurs when all media files playback is completed.
errCode | The error code, eumulate with AgoraRteErrorCodeType |
void io.agora.rte.media.stream.AgoraRteStreamingSourceObserver.onProgress | ( | AgoraRteFileInfo | currentFileInfo, |
long | positionMs | ||
) |
Reports current playback progress. The callback triggered once every one second during the playing status
currentFileInfo | current file information |
positionMs | the progress position |
void io.agora.rte.media.stream.AgoraRteStreamingSourceObserver.onMetaData | ( | AgoraRteFileInfo | currentFileInfo, |
byte[] | data, | ||
int | length | ||
) |
Occurs when the metadata is received.The callback occurs when the player receives the media metadata and reports the detailed information of the media metadata.
currentFileInfo | current file information |
data | The detailed data of the media metadata. |
length | The data length (bytes). |