|
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.
|
|