[interface] IVideo接口
更多...
#include <yy-api-client.h>
virtual int yy::IVideo::GetCameraList |
( |
const char *** |
cameras, |
|
|
int * |
count |
|
) |
| |
|
pure virtual |
获取摄像头列表
- 参数
-
const | char *** cameras 摄像头名称数组,内存由系统分配和释放 |
int | * count 摄像头名称数组大小 /* |
- 返回
- 0 sucess, failed 查看错误代码
virtual int yy::IVideo::Lock |
( |
| ) |
|
|
pure virtual |
获取视频直播控制权
/*
- 返回
- 0 sucess, failed 查看错误代码
virtual int yy::IVideo::RegisterVideoEvent |
( |
IVideoEvent * |
event | ) |
|
|
pure virtual |
注册视频直播事件
- 参数
-
- 返回
- 0 sucess, failed 查看错误代码
virtual int yy::IVideo::StartPublish |
( |
unsigned int |
hwnd, |
|
|
unsigned int |
camera |
|
) |
| |
|
pure virtual |
开始直播
- 参数
-
unsigned | int hwnd 视频窗口句柄 |
unsigned | int camera 使用的摄像头索引号 /* |
- 返回
- 0 sucess, failed 查看错误代码
virtual int yy::IVideo::StopPublish |
( |
| ) |
|
|
pure virtual |
停止直播
/*
- 返回
- 0 sucess, failed 查看错误代码
virtual int yy::IVideo::UnLock |
( |
| ) |
|
|
pure virtual |
释放视频直播控制权
/*
- 返回
- 0 sucess, failed 查看错误代码
virtual int yy::IVideo::UnRegisterVideoEvent |
( |
IVideoEvent * |
event | ) |
|
|
pure virtual |
注销视频直播事件
- 参数
-
- 返回
- 0 sucess, failed 查看错误代码