public class PolyvDownloaderManager
extends java.lang.Object
| 限定符和类型 | 方法和说明 |
|---|---|
static PolyvDownloader |
clearPolyvDownload(java.lang.String vid,
int bitRate)
|
static PolyvDownloader |
clearPolyvDownload(java.lang.String vid,
int bitRate,
int fileType)
|
static PolyvDownloader |
clearPolyvDownload(java.lang.String vid,
int bitRate,
int fileType,
Video.HlsSpeedType hlsSpeedType)
已过时。
|
static PolyvDownloader |
clearPolyvDownload(java.lang.String vid,
int bitRate,
Video.HlsSpeedType hlsSpeedType)
已过时。
|
static PolyvDownloader |
clearPolyvPptDownload(java.lang.String videoId)
|
static int |
getDownloadQueueCount()
获取下载队列总数
|
static java.lang.String |
getKey(java.lang.String vid,
int bitRate)
获取key
|
static java.lang.String |
getKey(java.lang.String vid,
int bitRate,
int fileType)
获取key
|
static java.lang.String |
getKey(java.lang.String vid,
int bitRate,
int fileType,
Video.HlsSpeedType hlsSpeedType)
已过时。
|
static java.lang.String |
getKey(java.lang.String vid,
int bitRate,
Video.HlsSpeedType hlsSpeedType)
已过时。
|
static PolyvDownloader |
getPolyvDownloader(java.lang.String vid,
int bitRate)
取得
PolyvDownloader,没有缓存的PolyvDownloader则新建一个,并加入缓存中。 |
static PolyvDownloader |
getPolyvDownloader(java.lang.String vid,
int bitRate,
int fileType)
取得
PolyvDownloader,没有缓存的PolyvDownloader则新建一个,并加入缓存中。 |
static PolyvDownloader |
getPolyvDownloader(java.lang.String vid,
int bitRate,
int fileType,
Video.HlsSpeedType hlsSpeedType)
已过时。
|
static PolyvDownloader |
getPolyvDownloader(java.lang.String vid,
int bitRate,
Video.HlsSpeedType hlsSpeedType)
已过时。
|
static PolyvDownloader |
getPolyvPptDownloader(java.lang.String videoId)
取得
PolyvDownloader,没有缓存的PolyvDownloader则新建一个,并加入缓存中。 |
static boolean |
isWaitingDownload(java.lang.String vid,
int bitRate)
是否在等待下载中
|
static boolean |
isWaitingDownload(java.lang.String vid,
int bitRate,
int fileType)
是否在等待下载中
|
static void |
releaseDownload()
释放所有当前的下载任务,清空下载队列
|
static void |
setDownloadQueueCount(int count)
设置下载队列总数,多少个视频能同时下载。
|
static void |
startAll()
已过时。
|
static void |
startAll(android.content.Context context)
开始全部下载
|
static void |
startUnfinished(java.util.List<java.lang.String> finishKeys)
已过时。
|
static void |
startUnfinished(java.util.List<java.lang.String> finishKeys,
android.content.Context context)
开始未完成的任务
获取key见方法 getKey(String, int) |
static void |
stopAll()
停止全部下载
|
public static PolyvDownloader getPolyvDownloader(java.lang.String vid, int bitRate)
PolyvDownloader,没有缓存的PolyvDownloader则新建一个,并加入缓存中。PolyvDownloaderListenerEvent.setPolyvDownloadStartListener(IPolyvDownloaderStartListener)PolyvDownloader.start()方法或者调用了PolyvDownloader.start(Context)方法,而没有回调PolyvDownloaderListenerEvent.setPolyvDownloadStartListener(IPolyvDownloaderStartListener)就表示正在排队中。isWaitingDownload(String, int)方法来获取视频是否在排队中。vid - 视频idbitRate - 码率(清晰度)@Deprecated public static PolyvDownloader getPolyvDownloader(java.lang.String vid, int bitRate, Video.HlsSpeedType hlsSpeedType)
PolyvDownloader,没有缓存的PolyvDownloader则新建一个,并加入缓存中。PolyvDownloaderListenerEvent.setPolyvDownloadStartListener(IPolyvDownloaderStartListener)PolyvDownloader.start()方法或者调用了PolyvDownloader.start(Context)方法,而没有回调PolyvDownloaderListenerEvent.setPolyvDownloadStartListener(IPolyvDownloaderStartListener)就表示正在排队中。isWaitingDownload(String, int)方法来获取视频是否在排队中。vid - 视频idbitRate - 码率(清晰度)hlsSpeedType - 播放速度,该参数已废弃getPolyvDownloader(String, int)public static PolyvDownloader getPolyvDownloader(java.lang.String vid, int bitRate, int fileType)
PolyvDownloader,没有缓存的PolyvDownloader则新建一个,并加入缓存中。PolyvDownloaderListenerEvent.setPolyvDownloadStartListener(IPolyvDownloaderStartListener)PolyvDownloader.start()方法或者调用了PolyvDownloader.start(Context)方法,而没有回调PolyvDownloaderListenerEvent.setPolyvDownloadStartListener(IPolyvDownloaderStartListener)就表示正在排队中。isWaitingDownload(String, int)方法来获取视频是否在排队中。vid - 视频idbitRate - 码率(清晰度)fileType - 下载的文件类型@Deprecated public static PolyvDownloader getPolyvDownloader(java.lang.String vid, int bitRate, int fileType, Video.HlsSpeedType hlsSpeedType)
PolyvDownloader,没有缓存的PolyvDownloader则新建一个,并加入缓存中。PolyvDownloaderListenerEvent.setPolyvDownloadStartListener(IPolyvDownloaderStartListener)PolyvDownloader.start()方法或者调用了PolyvDownloader.start(Context)方法,而没有回调PolyvDownloaderListenerEvent.setPolyvDownloadStartListener(IPolyvDownloaderStartListener)就表示正在排队中。isWaitingDownload(String, int)方法来获取视频是否在排队中。vid - 视频idbitRate - 码率(清晰度)fileType - 下载的文件类型hlsSpeedType - 播放速度,该参数已废弃getPolyvDownloader(String, int)public static boolean isWaitingDownload(java.lang.String vid,
int bitRate)
vid - 视频idbitRate - 码率(清晰度)true:在等待下载中false:不在等待下载中public static boolean isWaitingDownload(java.lang.String vid,
int bitRate,
int fileType)
vid - 视频idbitRate - 码率(清晰度)fileType - 下载的文件类型true:在等待下载中false:不在等待下载中public static PolyvDownloader clearPolyvDownload(java.lang.String vid, int bitRate)
vid - 视频idbitRate - 码率(清晰度)@Deprecated public static PolyvDownloader clearPolyvDownload(java.lang.String vid, int bitRate, Video.HlsSpeedType hlsSpeedType)
vid - 视频idbitRate - 码率(清晰度)hlsSpeedType - 播放速度,该参数已废弃clearPolyvDownload(String, int)public static PolyvDownloader clearPolyvDownload(java.lang.String vid, int bitRate, int fileType)
vid - 视频idbitRate - 码率(清晰度)fileType - 下载的文件类型@Deprecated public static PolyvDownloader clearPolyvDownload(java.lang.String vid, int bitRate, int fileType, Video.HlsSpeedType hlsSpeedType)
vid - 视频idbitRate - 码率(清晰度)hlsSpeedType - 播放速度,该参数已废弃clearPolyvDownload(String, int)@Deprecated public static void startAll()
startAll(Context)public static void startAll(android.content.Context context)
context - 设置此参数会判断SDK卡权限是否拥有public static java.lang.String getKey(java.lang.String vid,
int bitRate)
vid - 视频idbitRate - 码率(清晰度)@Deprecated
public static java.lang.String getKey(java.lang.String vid,
int bitRate,
Video.HlsSpeedType hlsSpeedType)
vid - 视频idbitRate - 码率(清晰度)hlsSpeedType - 播放速度,该参数已废弃getKey(String, int)public static java.lang.String getKey(java.lang.String vid,
int bitRate,
int fileType)
vid - 视频idbitRate - 码率(清晰度)fileType - 文件类型@Deprecated
public static java.lang.String getKey(java.lang.String vid,
int bitRate,
int fileType,
Video.HlsSpeedType hlsSpeedType)
vid - 视频idbitRate - 码率(清晰度)fileType - 文件类型hlsSpeedType - 播放速度,该参数已废弃getKey(String, int)@Deprecated public static void startUnfinished(java.util.List<java.lang.String> finishKeys)
getKey(String, int)finishKeys - 已完成任务的key集合startUnfinished(List, Context)public static void startUnfinished(java.util.List<java.lang.String> finishKeys,
android.content.Context context)
getKey(String, int)finishKeys - 已完成任务的key集合context - The context to usepublic static void stopAll()
public static void setDownloadQueueCount(int count)
count - 总数,默认是1,设置负数和0是没有限制public static int getDownloadQueueCount()
public static void releaseDownload()
public static PolyvDownloader getPolyvPptDownloader(java.lang.String videoId)
PolyvDownloader,没有缓存的PolyvDownloader则新建一个,并加入缓存中。PolyvDownloaderListenerEvent.setPolyvDownloadStartListener(IPolyvDownloaderStartListener)videoId - 视频idgetPolyvDownloader(String, int),
PolyvDownloaderListenerEvent.setPolyvDownloadPptListener(IPolyvDownloaderPptListener)public static PolyvDownloader clearPolyvPptDownload(java.lang.String videoId)
videoId - 视频idgetPolyvPptDownloader(String)