plv player sdk doc
Loading...
Searching...
No Matches
Typedefs | Functions
plv-player-download.h File Reference

Go to the source code of this file.

Typedefs

typedef void * PLVDownloadPtr
 download object type.
 
typedef void(* OnDownloadErrorHandler) (const char *vid, int code, void *data)
 for Callback notification of error messages during the process.
 
typedef void(* OnDownloadProgressHandler) (const char *vid, long long receivedBytes, long long totalBytes, void *data)
 for download progress callback.
 
typedef void(* OnDownloadResultHandler) (const char *vid, int rate, int code, void *data)
 for download result callback.
 

Functions

PLAYERSDK_API PLVDownloadPtr PLAYERSDK_CALL PLVDownloadCreate ()
 Creates the PLVDownloader object and returns the pointer.
 
PLAYERSDK_API void PLAYERSDK_CALL PLVDownloadDestroy (PLVDownloadPtr download)
 Destory the PLVDownloader object.
 
PLAYERSDK_API int PLAYERSDK_CALL PLVDownloadSetErrorHandler (PLVDownloadPtr download, OnDownloadErrorHandler handler, void *data)
 for in the download process error callback.
 
PLAYERSDK_API int PLAYERSDK_CALL PLVDownloadSetProgressHandler (PLVDownloadPtr download, OnDownloadProgressHandler handler, void *data)
 for download progress callback.
 
PLAYERSDK_API int PLAYERSDK_CALL PLVDownloadSetResultHandler (PLVDownloadPtr download, OnDownloadResultHandler handler, void *data)
 for download result callback.
 
PLAYERSDK_API int PLAYERSDK_CALL PLVDownloadResetHandler (PLVDownloadPtr download)
 for reset all handler, will clear all callback function.
 
PLAYERSDK_API int PLAYERSDK_CALL PLVDownloadSetInfo (PLVDownloadPtr download, const char *vid, const char *path, int rate)
 set the video info before download.
 
PLAYERSDK_API int PLAYERSDK_CALL PLVDownloadStart (PLVDownloadPtr download, bool autoDownRate)
 start download the video.
 
PLAYERSDK_API int PLAYERSDK_CALL PLVDownloadPause (PLVDownloadPtr download, bool pause)
 pause download the video, the thread not exit.
 
PLAYERSDK_API int PLAYERSDK_CALL PLVDownloadStop (PLVDownloadPtr download)
 stop download the video, the thread will exit.
 
PLAYERSDK_API int PLAYERSDK_CALL PLVDownloadDelete (PLVDownloadPtr download)
 delete the video file, will abort the download and exit thread.
 
PLAYERSDK_API bool PLAYERSDK_CALL PLVDownloadIsDownloading (PLVDownloadPtr download)
 check download status.