PLVPlaybackCacheManager
Objective-C
@interface PLVPlaybackCacheManager : NSObject
+ (PLVPlaybackVideoCacheState)stateOfPlaybackPlayerCacheState:(NSString *)fileId;
+ (void)asynGetPlaybackPlayerCacheState:(NSString *)fileId completion:(void (^)(PLVPlaybackVideoCacheState state))completion;
/// 添加 videoPoolId 至下载队列 (适用于回放列表、点播列表这两个有videoPoolId 的视频下载)
+ (void)enqueueDownloadQueueWithVideoPoolId:(NSString *)videoPoolId
channelId:(NSString *)channelId
completion:(void (^)(NSError *error))completion;
/// 添加 暂存视频的 fileId 至下载队列 (仅适用于暂存视频的下载)
+ (void)enqueueDownloadQueueWithRecordFileId:(NSString *)fileId
channelId:(NSString *)channelId
completion:(void (^)(NSError *error))completion;
/// 添加 PLVPlaybackVideoInfoModel 至下载队列
+ (void)enqueueDownloadQueueWithPlaybackPlayerModel:(PLVPlaybackVideoInfoModel *)playerModel
completion:(void (^)(NSError *error))completion;
@end
Swift
class PLVPlaybackCacheManager : NSObject
Undocumented
-
Undocumented
Declaration
Objective-C
+ (PLVPlaybackVideoCacheState)stateOfPlaybackPlayerCacheState:(NSString *)fileId;
Swift
class func state(ofPlaybackPlayerCacheState fileId: String) -> PLVPlaybackVideoCacheState
-
Undocumented
Declaration
Objective-C
+ (void)asynGetPlaybackPlayerCacheState:(NSString *)fileId completion:(void (^)(PLVPlaybackVideoCacheState state))completion;
Swift
class func asynGetPlaybackPlayerCacheState(_ fileId: String) async -> PLVPlaybackVideoCacheState
-
添加 videoPoolId 至下载队列 (适用于回放列表、点播列表这两个有videoPoolId 的视频下载)
Declaration
Objective-C
+ (void)enqueueDownloadQueueWithVideoPoolId:(nonnull NSString *)videoPoolId channelId:(nonnull NSString *)channelId completion:(nonnull void (^)( NSError *_Nonnull))completion;
Swift
class func enqueueDownloadQueue(withVideoPoolId videoPoolId: String, channelId: String) async -> Error
-
添加 暂存视频的 fileId 至下载队列 (仅适用于暂存视频的下载)
Declaration
Objective-C
+ (void)enqueueDownloadQueueWithRecordFileId:(nonnull NSString *)fileId channelId:(nonnull NSString *)channelId completion:(nonnull void (^)( NSError *_Nonnull))completion;
Swift
class func enqueueDownloadQueue(withRecordFileId fileId: String, channelId: String) async -> Error
-
添加 PLVPlaybackVideoInfoModel 至下载队列
Declaration
Objective-C
+ (void)enqueueDownloadQueueWithPlaybackPlayerModel: (nonnull PLVPlaybackVideoInfoModel *)playerModel completion: (nonnull void (^)( NSError *_Nonnull))completion;
Swift
class func enqueueDownloadQueue(withPlaybackPlayerModel playerModel: PLVPlaybackVideoInfoModel) async -> Error
-
通过本地/在线数据生成回放列表/点播列表中的视频信息模型 (将优先判断是否存在本地数据)
Declaration
Objective-C
+ (void)playbackVideoInfoModelWithVid:(nonnull NSString *)vid channelId:(nonnull NSString *)channelId listType:(nonnull NSString *)listType completion:(nonnull void (^)( PLVPlaybackVideoInfoModel *_Nonnull, NSError *_Nonnull))completion;
Swift
class func playbackVideoInfoModel(withVid vid: String, channelId: String, listType: String) async -> (PLVPlaybackVideoInfoModel, Error)
-
通过在线数据生成回放列表/点播列表中的视频信息模型
Declaration
Objective-C
+ (void) loadOnlinePlaybackVideoInfoModelWithVid:(nonnull NSString *)vid channelId:(nonnull NSString *)channelId listType:(nonnull NSString *)listType completion: (nonnull void (^)( PLVPlaybackVideoInfoModel *_Nonnull, NSError *_Nonnull))completion;
Swift
class func loadOnlinePlaybackVideoInfoModel(withVid vid: String, channelId: String, listType: String) async -> (PLVPlaybackVideoInfoModel, Error)
-
通过本地/在线数据生成暂存列表中的视频信息模型 (将优先判断是否存在本地数据)
Declaration
Objective-C
+ (void)recordPlaybackVideoInfoModelWithFileId:(nonnull NSString *)fileId channelId:(nonnull NSString *)channelId completion: (nonnull void (^)( PLVPlaybackVideoInfoModel *_Nonnull, NSError *_Nonnull))completion;
Swift
class func recordPlaybackVideoInfoModel(withFileId fileId: String, channelId: String) async -> (PLVPlaybackVideoInfoModel, Error)
-
通过在线数据生成暂存列表中的视频信息模型
Declaration
Objective-C
+ (void) loadOnlineRecordPlaybackVideoInfoModelWithFileId:(nonnull NSString *)fileId channelId: (nonnull NSString *)channelId completion: (nonnull void (^)( PLVPlaybackVideoInfoModel *_Nonnull, NSError *_Nonnull))completion;
Swift
class func loadOnlineRecordPlaybackVideoInfoModel(withFileId fileId: String, channelId: String) async -> (PLVPlaybackVideoInfoModel, Error)
-
下载回放模型 -> 本地播放回放模型
Declaration
Objective-C
+ (nonnull PLVPlaybackLocalVideoInfoModel *)toPlaybackPlayerModel: (nonnull PLVDownloadPlaybackTaskInfo *)taskInfo;
Swift
class func toPlaybackPlayerModel(_ taskInfo: PLVDownloadPlaybackTaskInfo) -> PLVPlaybackLocalVideoInfoModel
-
在线播放回放模型 -> 下载回放模型
Declaration
Objective-C
+ (nonnull PLVDownloadPlaybackTaskInfo *)toDownloadPlaybackTaskInfo: (nonnull PLVPlaybackVideoInfoModel *)model;
Swift
class func toDownloadPlaybackTaskInfo(_ model: PLVPlaybackVideoInfoModel) -> PLVDownloadPlaybackTaskInfo