PLVVodVideo Class Reference

Inherits from NSObject
Declared in PLVVodVideo.h

Overview

视频数据模型

  vid

视频 id

@property (nonatomic, copy, readonly) NSString *vid

Declared In

PLVVodVideo.h

  title

视频标题

@property (nonatomic, copy, readonly) NSString *title

Declared In

PLVVodVideo.h

  qualityCount

可用清晰度数量

@property (nonatomic, assign, readonly) int qualityCount

Declared In

PLVVodVideo.h

  preferredQuality

默认播放清晰度

@property (nonatomic, assign) PLVVodQuality preferredQuality

Declared In

PLVVodVideo.h

  duration

视频时长

@property (nonatomic, assign, readonly) NSTimeInterval duration

Declared In

PLVVodVideo.h

  sourcefilesize

源文件大小

@property (nonatomic, assign, readonly) NSInteger sourcefilesize

Declared In

PLVVodVideo.h

  filesizes

各码率视频大小

@property (nonatomic, strong, readonly) NSArray<NSNumber*> *filesizes

Declared In

PLVVodVideo.h

  snapshot

视频快照URL

@property (nonatomic, copy) NSString *snapshot

Declared In

PLVVodVideo.h

  keepSource

源文件播放

@property (nonatomic, assign, readonly) BOOL keepSource

Declared In

PLVVodVideo.h

  categoryId

分类id

@property (nonatomic, copy, readonly) NSString *categoryId

Declared In

PLVVodVideo.h

  categoryTree

分类树

@property (nonatomic, strong, readonly) NSArray *categoryTree

Declared In

PLVVodVideo.h

  interactive

是否存在问答

@property (nonatomic, assign, readonly) BOOL interactive

Declared In

PLVVodVideo.h

  srts

视频字幕(srtKey: srtUrl)

@property (nonatomic, strong) NSDictionary<NSString*NSString*> *srts

Declared In

PLVVodVideo.h

  ads

广告信息

@property (nonatomic, strong) NSArray<PLVVodAd*> *ads

Declared In

PLVVodVideo.h

  teaser

片头URL

@property (nonatomic, copy) NSString *teaser

Declared In

PLVVodVideo.h

  teaserDuration

片头播放时长

@property (nonatomic, assign) NSTimeInterval teaserDuration

Declared In

PLVVodVideo.h

  teaserShow

是否显示片头

@property (nonatomic, assign) BOOL teaserShow

Declared In

PLVVodVideo.h

  availableRouteLines

可用线路

@property (nonatomic, strong, readonly) NSArray<NSString*> *availableRouteLines

Declared In

PLVVodVideo.h

  error

若视频不合法,可以从该属性获取不合法原因,否则为空

@property (nonatomic, strong) NSError *error

Declared In

PLVVodVideo.h

– available

视频或账号是否可用

- (BOOL)available

Declared In

PLVVodVideo.h

– isPlain

视频是否为非加密视频

- (BOOL)isPlain

Declared In

PLVVodVideo.h

– isHls

视频是否为hls视频

- (BOOL)isHls

Declared In

PLVVodVideo.h

+ requestVideoWithVid:completion:

请求获取 PLVVodVideo 模型对象

+ (void)requestVideoWithVid:(NSString *)vid completion:(void ( ^ ) ( PLVVodVideo *video , NSError *error ))completion

Parameters

vid

vid

completion

PLVVodVideo 模型对象

Declared In

PLVVodVideo.h