... | ... | @@ -77,6 +77,11 @@ DWVodVideoModel类是SDK中媒体的数据模型,无论是播放、下载都 |
|
|
*/
|
|
|
@property(nonatomic, assign, readonly)NSInteger defaultSubtitle;
|
|
|
|
|
|
/**
|
|
|
* @brief 字幕模式,-1 无字幕 ,0 固定字号, 1 自适应模式
|
|
|
*/
|
|
|
@property(nonatomic, assign, readonly)NSInteger subtitlemodel;
|
|
|
|
|
|
/**
|
|
|
* @brief 字幕1
|
|
|
*/
|
... | ... | @@ -217,12 +222,12 @@ DWPlayerView包含的属性及方法如下: |
|
|
/**
|
|
|
* @brief 当前正在播放的媒体清晰度model,非在线视频返回nil。注意,在调用playVodViedo:withCustomId:方法后才可获取到此属性
|
|
|
*/
|
|
|
@property(nonatomic,strong,readonly)DWVideoQualityModel * qualityModel;
|
|
|
@property(nonatomic,strong,readonly,nullable)DWVideoQualityModel * qualityModel;
|
|
|
|
|
|
/**
|
|
|
* @brief 返回当前播放的离线model,在线视频返回nil。注意,在调用playLocalVideo:方法后才可获取到此属性
|
|
|
*/
|
|
|
@property(nonatomic,strong,readonly)DWDownloadModel * downloadModel;
|
|
|
@property(nonatomic,strong,readonly,nullable)DWDownloadModel * downloadModel;
|
|
|
|
|
|
/**
|
|
|
* @brief 当前播放时长
|
... | ... | @@ -948,6 +953,16 @@ DWVideoQuestionModel数据及含义如下: |
|
|
*/
|
|
|
@property(nonatomic, assign, readonly)BOOL isDownload;
|
|
|
|
|
|
/*!
|
|
|
* @method
|
|
|
* @abstract 计算自适应字幕字体大小
|
|
|
* @discussion 计算自适应字幕字体大小
|
|
|
* @param size 后台返回字幕字体大小
|
|
|
* @param playerWidth 当前播放器宽度,单位pt
|
|
|
* @result 计算后的字幕字体大小
|
|
|
*/
|
|
|
+(CGFloat)getAdaptiveFontSize:(CGFloat)size PlayerWidth:(CGFloat)playerWidth;
|
|
|
|
|
|
```
|
|
|
|
|
|
## 1.7 授权验证功能
|
... | ... | @@ -2138,7 +2153,7 @@ DWDownloadSessionManager是下载管理类,所有有关下载的操作,都 |
|
|
* @param othersInfo 自定义字段,可为空
|
|
|
* @result 创建成功返回DWDownloadModel对象,如果失败,返回nil
|
|
|
*/
|
|
|
+(DWDownloadModel *)createDownloadModel:(DWVodVideoModel *)videoMdoel Quality:(NSString *)quality AndOthersInfo:(NSDictionary *)othersInfo;
|
|
|
+(DWDownloadModel *)createDownloadModel:(DWVodVideoModel *)videoMdoel Quality:(NSString *)quality AndOthersInfo:(nullable NSDictionary *)othersInfo;
|
|
|
|
|
|
/*!
|
|
|
* @method
|
... | ... | @@ -2270,15 +2285,15 @@ DWDownloadSessionManager是下载管理类,所有有关下载的操作,都 |
|
|
* @param totalBytesExpectedToWrite 文件的总大小。对于未完成的任务,必填
|
|
|
* @result 若过渡成功,返回DWDownloadModel对象,否则返回nil
|
|
|
*/
|
|
|
-(DWDownloadModel *)migrateDownloadTask:(NSString *)loaclPath
|
|
|
DownloadUrl:(NSString *)downloadUrl
|
|
|
MediaType:(NSString *)mediaType
|
|
|
Quality:(NSString *)quality
|
|
|
Desp:(NSString *)desp
|
|
|
-(DWDownloadModel *)migrateDownloadTask:(nullable NSString *)loaclPath
|
|
|
DownloadUrl:(nullable NSString *)downloadUrl
|
|
|
MediaType:(nullable NSString *)mediaType
|
|
|
Quality:(nullable NSString *)quality
|
|
|
Desp:(nullable NSString *)desp
|
|
|
VRMode:(BOOL)vrMode
|
|
|
OthersInfo:(NSDictionary *)othersInfo
|
|
|
UserId:(NSString *)userId
|
|
|
VideoId:(NSString *)videoId
|
|
|
OthersInfo:(nullable NSDictionary *)othersInfo
|
|
|
UserId:(nullable NSString *)userId
|
|
|
VideoId:(nullable NSString *)videoId
|
|
|
TotalBytesWritten:(int64_t)totalBytesWritten
|
|
|
TotalBytesExpectedToWrite:(int64_t)totalBytesExpectedToWrite;
|
|
|
```
|
... | ... | @@ -2378,6 +2393,11 @@ DWDownloadModel对象对应具体的下载任务。 |
|
|
*/
|
|
|
@property(nonatomic, assign, readonly)NSInteger defaultSubtitle;
|
|
|
|
|
|
/**
|
|
|
* @brief 字幕模式,-1 无字幕 ,0 固定字号, 1 自适应模式
|
|
|
*/
|
|
|
@property(nonatomic, assign, readonly)NSInteger subtitlemodel;
|
|
|
|
|
|
/**
|
|
|
* @brief 字幕1
|
|
|
*/
|
... | ... | @@ -2541,18 +2561,19 @@ DWUploadSessionManager是上传管理类,所有有关上传的操作,都是 |
|
|
* @param title 视频标题,不能为nil
|
|
|
* @param description 视频描述
|
|
|
* @param tag 视频标签
|
|
|
* @param path 视频路径,不能为nil
|
|
|
* @param videoPath 视频路径,不能为nil
|
|
|
* @param categoryId 视频分类
|
|
|
* @param notifyURL 通知URL
|
|
|
* @result DWUploadModel对象
|
|
|
*/
|
|
|
+(DWUploadModel *)createUploadModelWithUserId:(NSString *)userId
|
|
|
Apikey:(NSString *)apikey
|
|
|
VideoTitle:(NSString *)title
|
|
|
VideoDescription:(NSString *)description
|
|
|
VideoTag:(NSString *)tag
|
|
|
VideoDescription:(nullable NSString *)description
|
|
|
VideoTag:(nullable NSString *)tag
|
|
|
VideoPath:(NSString *)videoPath
|
|
|
CategoryId:(NSString *)categoryId
|
|
|
NotifyURL:(NSString *)notifyURL;
|
|
|
CategoryId:(nullable NSString *)categoryId
|
|
|
NotifyURL:(nullable NSString *)notifyURL;
|
|
|
|
|
|
/*!
|
|
|
* @method
|
... | ... | |