YYClientSDK  beta 1.15
 全部  函数 枚举 枚举值
Public 成员函数 | 所有成员列表
yy::IVideo结构体 参考abstract

[interface] IVideo接口 更多...

#include <yy-api-client.h>

Public 成员函数

virtual int Lock ()=0
 获取视频直播控制权
 
virtual int UnLock ()=0
 释放视频直播控制权
 
virtual int GetCameraList (const char ***cameras, int *count)=0
 获取摄像头列表
 
virtual int StartPublish (unsigned int hwnd, unsigned int camera)=0
 开始直播
 
virtual int StopPublish ()=0
 停止直播
 
virtual int RegisterVideoEvent (IVideoEvent *event)=0
 注册视频直播事件
 
virtual int UnRegisterVideoEvent (IVideoEvent *event)=0
 注销视频直播事件
 

详细描述

[interface] IVideo接口

成员函数说明

virtual int yy::IVideo::GetCameraList ( const char ***  cameras,
int *  count 
)
pure virtual

获取摄像头列表

参数
constchar *** 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

注册视频直播事件

参数
IVideoEvent* event 视频直播事件 /*
返回
0 sucess, failed 查看错误代码
virtual int yy::IVideo::StartPublish ( unsigned int  hwnd,
unsigned int  camera 
)
pure virtual

开始直播

参数
unsignedint hwnd 视频窗口句柄
unsignedint 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

注销视频直播事件

参数
IVideoEvent* event 视频直播事件 /*
返回
0 sucess, failed 查看错误代码