类说明
视频播放器控制。
CAVideoPlayerControlView 属性(点击查看方法介绍)
| 属性 | 说明 |
| Title | 标题 |
| ShowBackButton | 显示后退按钮 |
| PlayerControlViewDelegate | PlayerControlView代理类 |
CAVideoPlayerControlView 方法(点击查看方法介绍)
| 属性 | 说明 |
| createWithFrame | 创建,并指定其Frame。 |
| createWithCenter | 创建,并指定其Center。 |
| initWithPath | 初始化Path。 |
| initWithUrl | 初始化Url。 |
CAVideoPlayerControlView 属性说明
类型:std::string
解释:标题,set/get{}。
类型:bool
解释:显示后退按钮,set/get{}。
类型:CAVideoPlayerControlViewDelegate*
解释:PlayerControlView代理类,set/get{}。
CAVideoPlayerControlView 方法说明
static CAVideoPlayerControlView* createWithFrame(const DRect& rect);
返回值:CAVideoPlayerControlView*
参数:
| 类型 | 参数名 | 说明 |
| const DRect& | rect | 区域大小 |
解释:创建,并指定其Frame
static CAVideoPlayerControlView* createWithCenter(const DRect& rect);
返回值:CAVideoPlayerControlView*
参数:
| 类型 | 参数名 | 说明 |
| const DRect& | rect | 中心点的位置及大小 |
解释:创建,并设置其Center
void initWithPath(const std::string& szPath);
返回值:void
参数:
| 类型 | 参数名 | 说明 |
| const std::string& | szPath | 路径 |
解释:初始化并制定文件路径
void initWithUrl(const std::string& szUrl);
返回值:void
参数:
| 类型 | 参数名 | 说明 |
| const std::string& | szUrl | Url |
解释:初始化并制定Url