Commit b4acb77c authored by Hanruisong's avatar Hanruisong
Browse files

feat: 更新到 4.14.2

1.新增真机架构SDK。
parent 5aafef39
//版本号
#define SDK_VERSION @"4.14.2"
#import <CCVodSDK/DWGIFManager.h>
#import <CCVodSDK/DWAdInfo.h>
#import <CCVodSDK/DWVideoDataAdapter.h>
#import <CCVodSDK/DWExt.h>
#import <CCVodSDK/DWLog.h>
#import <CCVodSDK/DWDownloadUtility.h>
#import <CCVodSDK/DWDownloadSessionManager.h>
#import <CCVodSDK/DWDownloadModel.h>
#import <CCVodSDK/DWDownloadSessionManager+File.h>
#import <CCVodSDK/DWVRLibrary.h>
#import <CCVodSDK/DWVideoCompressController.h>
#import <CCVodSDK/DWVRHeader.h>
#import <CCVodSDK/DW360Program.h>
#import <CCVodSDK/DW360Director.h>
#import <CCVodSDK/DWErrorCode.h>
#import <CCVodSDK/DWVodAdInfoModel.h>
#import <CCVodSDK/DWVodVideoModel.h>
#import <CCVodSDK/DWPlayerView.h>
#import <CCVodSDK/DWPlayerSkinView.h>
#import <CCVodSDK/DWPlayInfo.h>
#import <CCVodSDK/DWUPnPAVPositionInfo.h>
#import <CCVodSDK/DWUPnPResponseDelegate.h>
#import <CCVodSDK/DWUPnPSubscription.h>
#import <CCVodSDK/DWUPnPRenderer.h>
#import <CCVodSDK/DWUPnPDevice.h>
#import <CCVodSDK/DWUPnPSearch.h>
#import <CCVodSDK/DWUploadSessionManager.h>
#import <CCVodSDK/DWUploadModel.h>
#import <CCVodSDK/DWBatchDownloadUtility.h>
#import <CCVodSDK/DWBarrageModel.h>
#import <CCVodSDK/DWBarrageManager.h>
#import <CCVodSDK/DWVideoLogoModel.h>
//
// DW360Director.h
// DW360Player4IOS
//
// Created by ashqal on 16/4/7.
// Copyright © 2016年 ashqal. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "DW360Program.h"
#import <UIKit/UIKit.h>
#import <GLKit/GLKit.h>
#import "DWVRHeader.h"
NS_ASSUME_NONNULL_BEGIN
#pragma mark DW360Director
@interface DW360Director : NSObject<IMDDestroyable>
/*!
* @method
* @abstract 初始化对象
* @discussion 初始化对象
* @result DW360Director对象
*/
-(instancetype)init;
/*!
* @method
* @abstract 传递DW360Program
* @discussion 传递DW360Program
* @param program DW360Program对象
*/
-(void)shot:(DW360Program*)program;
/*!
* @method
* @abstract 恢复初始值
* @discussion 恢复初始值
*/
-(void)reset;
/*!
* @method
* @abstract 更新投影宽高
* @discussion 更新投影宽高
* @param width 宽
* @param height 高
*/
-(void)updateProjection:(int)width height:(int)height;
/*!
* @method
* @abstract 更新投影比例
* @discussion 更新投影比例
* @param scale 比例
*/
-(void)updateProjectionNearScale:(float)scale;
/*!
* @method
* @abstract 更新投影
* @discussion 更新投影
*/
-(void)updateProjection;
/*!
* @method
* @abstract 更新矩阵
* @discussion 更新矩阵
* @param sensor 矩阵
*/
-(void)updateSensorMatrix:(GLKMatrix4)sensor;
/*!
* @method
* @abstract 更新touch坐标
* @discussion 更新touch坐标
* @param distX X坐标
* @param distY Y坐标
*/
-(void)updateTouch:(float)distX distY:(int)distY;
/*!
* @method
* @abstract 获取比率
* @discussion 获取比率
* @result 比率
*/
-(float)getRatio;
/*!
* @method
* @abstract 获取投影比例
* @discussion 获取投影比例
* @result 投影比例
*/
-(float)getNear;
/*!
* @method
* @abstract 设置矩阵
* @discussion 设置矩阵
* @param project 矩阵
*/
-(void)setProjection:(GLKMatrix4)project;
/*!
* @method
* @abstract 设置lookX
* @discussion 设置lookX
* @param lookX lookX
*/
-(void)setLookX:(float)lookX;
/*!
* @method
* @abstract 设置eyeX
* @discussion 设置eyeX
* @param eyeX eyeX
*/
-(void)setEyeX:(float)eyeX;
/*!
* @method
* @abstract 设置角度坐标
* @discussion 设置角度坐标
* @param angleX X坐标
*/
-(void)setAngleX:(float)angleX;
/*!
* @method
* @abstract 设置角度坐标
* @discussion 设置角度坐标
* @param angleY Y坐标
*/
-(void)setAngleY:(float)angleY;
/*!
* @method
* @abstract 开始
* @discussion 开始
*/
-(void)setup;
@end
#pragma mark DW360DirectorFactory
@protocol DW360DirectorFactory <NSObject>
@required
/** 创建导向器回调
@param index 序号
@return DW360Director对象
*/
-(DW360Director*)createDirector:(int)index;
@end
#pragma mark DW360DirectorFactory
@interface DW360DefaultDirectorFactory : NSObject<DW360DirectorFactory>
@end
NS_ASSUME_NONNULL_END
//
// DW360Program.h
// DW360Player4IOS
//
// Created by ashqal on 16/4/6.
// Copyright © 2016年 ashqal. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "DWVRHeader.h"
NS_ASSUME_NONNULL_BEGIN
@interface DW360Program : NSObject<IMDDestroyable>{
GLuint vertexShaderHandle,fragmentShaderHandle;
}
/**
* @brief MVP矩阵
*/
@property(nonatomic)int mMVPMatrixHandle;
/**
* @brief MV矩阵
*/
@property(nonatomic)int mMVMatrixHandle;
/**
* @brief 坐标
*/
@property(nonatomic)int mPositionHandle;
/**
* @brief 纹理坐标
*/
@property(nonatomic)int mTextureCoordinateHandle;
/**
* @brief program
*/
@property(nonatomic)int mProgramHandle;
/**
* @brief 内容类型
*/
@property(nonatomic)int mContentType;
/**
* @brief textureUniform指针
*/
@property(nonatomic)int* mTextureUniformHandle;
/**
* @brief 色彩转换
*/
@property(nonatomic)int mColorConversionHandle;
/*!
* @method
* @abstract 初始化准备
* @discussion 初始化准备
*/
-(void)build;
/*!
* @method
* @abstract 使用
* @discussion 使用
*/
-(void)use;
/*!
* @method
* @abstract 获取默认值
* @discussion 获取默认值
* @result textureUniformSize
*/
-(int)getTextureUniformSize;
@end
@interface DWRGBAProgram : DW360Program
@end
@interface DWYUV420PProgram : DW360Program
@end
NS_ASSUME_NONNULL_END
#import <Foundation/Foundation.h>
@class DWVodAdInfoModel;
NS_ASSUME_NONNULL_BEGIN
typedef void (^DWErrorBlock)(NSError *error);
typedef void (^DWAdInfoFinishBlock)(DWVodAdInfoModel * adInfo);
///广告获取类
@interface DWAdInfo : NSObject
/**
* @brief 请求失败回调
*/
@property(copy, nonatomic)DWErrorBlock errorBlock;
/**
* @brief 请求完成回调
*/
@property(copy, nonatomic)DWAdInfoFinishBlock finishBlock;
/**
* @brief 请求超时时间,默认10s
*/
@property(assign, nonatomic)NSTimeInterval timeoutSeconds;
/*!
* @method
* @abstract 初始化方法
* @discussion 初始化方法
* @param userId 账号id
* @param videoId 视频id
* @param type 广告类型
* @result DWAdInfo对象
*/
-(instancetype)initWithUserId:(NSString *)userId andVideoId:(NSString *)videoId type:(NSString *)type;
/*!
* @method
* @abstract 开始获取广告数据
* @discussion 开始获取广告数据
*/
-(void)start;
@end
NS_ASSUME_NONNULL_END
//
// DWBarrageManager.h
// Demo
//
// Created by zwl on 2020/6/4.
// Copyright © 2020 com.bokecc.www. All rights reserved.
//
#import <Foundation/Foundation.h>
@class DWBarrageManager;
NS_ASSUME_NONNULL_BEGIN
@protocol DWBarrageManagerDelegate <NSObject>
@optional
/** 收到弹幕响应回调
@param barrageManager 自身对象
@param barrageList 字幕列表
@param error 错误信息
*/
-(void)getBarrageManager:(DWBarrageManager *)barrageManager BarrageList:(NSArray <DWBarrageModel *> *)barrageList WithError:(NSError *)error;
/** 发送弹幕回调
@param barrageManager 自身对象
@param sendBarrageModel 字幕模型
@param error 错误信息
*/
-(void)sendBarrageManager:(DWBarrageManager *)barrageManager BarrageModel:(DWBarrageModel *)sendBarrageModel WithError:(NSError *)error;
@end
///弹幕管理类,负责发送弹幕以及接收弹幕。
@interface DWBarrageManager : NSObject
/**
* @brief 视频id
*/
@property(nonatomic,copy)NSString * videoId;
/**
* @brief 代理
*/
@property(nonatomic,weak)id <DWBarrageManagerDelegate> delegate;
/*!
* @method
* @abstract 设置当前播放时间
* @discussion 设置当前播放时间
* @param time 当前播放时间
*/
-(void)associationWithTimeDidChange:(float)time;
/*!
* @method
* @abstract 发送弹幕
* @discussion 发送弹幕
* @param barrageModel 弹幕模型
*/
-(void)sendBarrageWithBarrageModel:(DWBarrageModel *)barrageModel;
/*!
* @method
* @abstract 销毁进行中的请求
* @discussion 只对获取弹幕请求有效,发送弹幕的请求不会被销毁。
*/
-(void)cancelRequest;
@end
NS_ASSUME_NONNULL_END
//
// DWBarrageModel.h
// Demo
//
// Created by zwl on 2020/6/4.
// Copyright © 2020 com.bokecc.www. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
///弹幕数据模型
@interface DWBarrageModel : NSObject
/**
* @brief 字幕内容
*/
@property(nonatomic,strong,readonly)NSString * content;
/**
* @brief 字幕颜色
*/
@property(nonatomic,strong,readonly)NSString * fc;
/**
* @brief 播放时间点,单位:毫秒
*/
@property(nonatomic,assign,readonly)NSInteger pt;
/*!
* @method
* @abstract 初始化方法
* @discussion 初始化方法
* @param content 字幕内容
* @param fc 字幕颜色,eg:0xffffff
* @param pt 弹幕时间,单位毫秒
* @result DWBarrageModel对象
*/
-(instancetype)initWithContent:(NSString *)content Fc:(NSString *)fc Pt:(NSInteger)pt;
@end
NS_ASSUME_NONNULL_END
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment