cn.tee3.avd_SDK-C++  2.1.0
Public 成员函数 | Protected 成员函数 | 所有成员列表
tee3::avd::IMLocalRecord::StreamOut类 参考abstract

录制中录制音视频流回调接口. 更多...

Public 成员函数

virtual void videoStreamOut (const String &recHandle, uint64 timestamp_ns, unsigned int w, unsigned int h, bool isKeyFrame, const uint8 *data, unsigned int len)=0
 视频流回调接口 更多...
 
virtual void audioStreamOut (const String &recHandle, uint64 timestamp_ns, int sampleRate, int channels, const uint8 *data, unsigned int len)=0
 音频流回调接口 更多...
 

Protected 成员函数

virtual ~StreamOut ()
 

详细描述

录制中录制音视频流回调接口.

构造及析构函数说明

◆ ~StreamOut()

virtual tee3::avd::IMLocalRecord::StreamOut::~StreamOut ( )
protectedvirtual

成员函数说明

◆ audioStreamOut()

virtual void tee3::avd::IMLocalRecord::StreamOut::audioStreamOut ( const String recHandle,
uint64  timestamp_ns,
int  sampleRate,
int  channels,
const uint8 data,
unsigned int  len 
)
pure virtual

音频流回调接口

参数
[in]recHandle录制模块句柄。
[in]timestamp_ns时间戳, nanos second。
[in]sampleRate音频采样率
[in]channels音频采集通道数
[in]data音频内容数据指针
[in]len音频内容大小
注解
音频流的数据格式为PCM 16位。 视频时间戳和音频时间戳的回调是独立的,回调时没有前后关系,即视频回调某一时间戳A后,音频后续回调的时间戳B可能比A小;反之亦然。 音视频的数据回调函数中不能堵塞,不能做费时操作。
参见
avd_localrecord_createRecorder

◆ videoStreamOut()

virtual void tee3::avd::IMLocalRecord::StreamOut::videoStreamOut ( const String recHandle,
uint64  timestamp_ns,
unsigned int  w,
unsigned int  h,
bool  isKeyFrame,
const uint8 data,
unsigned int  len 
)
pure virtual

视频流回调接口

参数
[in]recHandle录制模块句柄。
[in]timestamp_ns时间戳, nanos second
[in]w图像宽度
[in]h图像高度
[in]data图像内容数据指针
[in]len图像内容大小
注解
视频流的数据格式为h264或者vp8等编码后格式,具体由视频发布端发布时确定。 视频时间戳和音频时间戳的回调是独立的,回调时没有前后关系,即视频回调某一时间戳A后,音频后续回调的时间戳B可能比A小;反之亦然。 音视频的数据回调函数中不能堵塞,不能做费时操作。
参见
avd_localrecord_createRecorder

该类的文档由以下文件生成: