Agora Java API Reference for Android
|
Public Member Functions | |
int | clearFileList () |
int | getFileCount () |
long | getTotalDuration () |
AgoraRteFileInfo | getFileInfoById (int fileId) |
AgoraRteFileInfo | getFileInfoByIndex (int fileIndex) |
AgoraRteFileInfo | getFirstFileInfo () |
AgoraRteFileInfo | getLastFileInfo () |
List< AgoraRteFileInfo > | getFileList () |
int | insertFile (String url, int insertIndex, AgoraRteFileInfo fileInfo) |
int | appendFile (String url, AgoraRteFileInfo fileInfo) |
int | removeFileById (int fileId) |
int | removeFileByIndex (int removeIndex) |
int | removeFileByUrl (String url) |
void | destroy () |
int io.agora.rte.media.media_player.AgoraRtePlayList.clearFileList | ( | ) |
clear all files in current list if there is a current file , it will return ERR_ALREADY_IN_USE
int io.agora.rte.media.media_player.AgoraRtePlayList.getFileCount | ( | ) |
retrieve the file count of current list
long io.agora.rte.media.media_player.AgoraRtePlayList.getTotalDuration | ( | ) |
Gets the total duration of the list
AgoraRteFileInfo io.agora.rte.media.media_player.AgoraRtePlayList.getFileInfoById | ( | int | fileId | ) |
Get file information by file Id
fileId | the query file id |
AgoraRteFileInfo io.agora.rte.media.media_player.AgoraRtePlayList.getFileInfoByIndex | ( | int | fileIndex | ) |
Get file information by file index
fileIndex | the query file index |
AgoraRteFileInfo io.agora.rte.media.media_player.AgoraRtePlayList.getFirstFileInfo | ( | ) |
get first file info
AgoraRteFileInfo io.agora.rte.media.media_player.AgoraRtePlayList.getLastFileInfo | ( | ) |
get last file info
List<AgoraRteFileInfo> io.agora.rte.media.media_player.AgoraRtePlayList.getFileList | ( | ) |
Get the file information list of current list
int io.agora.rte.media.media_player.AgoraRtePlayList.insertFile | ( | String | url, |
int | insertIndex, | ||
AgoraRteFileInfo | fileInfo | ||
) |
Insert new file into list at the appointed position
url | the file path url |
insertIndex | the index of want to insert, range in [0, (file_count-1)] insert_index <= 0: insert into head of list insert_index >= file_count: insert into tail of list |
fileInfo | output the file information |
int io.agora.rte.media.media_player.AgoraRtePlayList.appendFile | ( | String | url, |
AgoraRteFileInfo | fileInfo | ||
) |
Append new file into list tail
url | the file path url |
fileInfo | output the file information |
int io.agora.rte.media.media_player.AgoraRtePlayList.removeFileById | ( | int | fileId | ) |
Remove the the appointed file from list If removing current file, it will return @agora::ERR_ALREADY_IN_USE
fileId | the file UUID which want to be removed |
int io.agora.rte.media.media_player.AgoraRtePlayList.removeFileByIndex | ( | int | removeIndex | ) |
Remove the the all files from list which has appointed file url If removing current file, it will return @agora::ERR_ALREADY_IN_USE
removeIndex | the file index which want to be remove |
int io.agora.rte.media.media_player.AgoraRtePlayList.removeFileByUrl | ( | String | url | ) |
Remove the the all files from list which has appointed file url If removing current file, it will return @agora::ERR_ALREADY_IN_USE
url | the file URL which want to be remove |
void io.agora.rte.media.media_player.AgoraRtePlayList.destroy | ( | ) |
destroy play list