ZegoLiveRoom
Public Member Functions | List of all members
AVE::SupportsVideoCapture Class Referenceabstract

#include <video_capture.h>

Inheritance diagram for AVE::SupportsVideoCapture:
AVE::Camera AVE::VideoCaptureDevice

Public Member Functions

virtual int SetFrameRate (int framerate)=0
 设置采集帧率 More...
 
virtual int SetResolution (int width, int height)=0
 设置采集分辨率,采集的分辨率最大不能超过1920*1080 More...
 
virtual int SetFrontCam (int bFront)=0
 切换前后摄像头,移动端专用,PC端不需要实现 More...
 
virtual int SetView (void *view)=0
 设置采集使用载体 More...
 
virtual int SetViewMode (int nMode)=0
 设置采集预览模式 More...
 
virtual int SetViewRotation (int nRotation)=0
 设置采集预览的逆时针旋转角度 More...
 
virtual int SetCaptureRotation (int nRotation)=0
 设置采集buffer的顺时针旋转角度 More...
 
virtual int StartPreview ()=0
 启动预览 More...
 
virtual int StopPreview ()=0
 停止预览 More...
 
virtual int EnableTorch (bool bEnable)=0
 打开闪光灯 More...
 
virtual int TakeSnapshot ()=0
 对采集预览进行截图,完成后通过client的OnTakeSnapshot方法通知SDK More...
 
virtual int SetPowerlineFreq (unsigned int nFreq)
 设置采集刷新率 More...
 

Member Function Documentation

◆ EnableTorch()

virtual int AVE::SupportsVideoCapture::EnableTorch ( bool  bEnable)
pure virtual

打开闪光灯

Parameters
bEnabletrue表示打开,false表示关闭
Note
SDK EnableTorch异步调用
可以不实现

◆ SetCaptureRotation()

virtual int AVE::SupportsVideoCapture::SetCaptureRotation ( int  nRotation)
pure virtual

设置采集buffer的顺时针旋转角度

Parameters
nRotation值为0,90,180,270
Note
SDK SetDisplayRotation 异步调用,主要用于修复移动端的横竖屏旋转问题
可以不实现

◆ SetFrameRate()

virtual int AVE::SupportsVideoCapture::SetFrameRate ( int  framerate)
pure virtual

设置采集帧率

Parameters
framerate帧率,一般为10,15,20,30
Note
SDK SetVideoFPS异步调用,透传该方法入参
可以不实现

◆ SetFrontCam()

virtual int AVE::SupportsVideoCapture::SetFrontCam ( int  bFront)
pure virtual

切换前后摄像头,移动端专用,PC端不需要实现

Parameters
bFronttrue表示前摄像头,false表示后摄像头
Note
SDK SetFrontCam异步调用,透传该方法入参
可以不实现

◆ SetPowerlineFreq()

virtual int AVE::SupportsVideoCapture::SetPowerlineFreq ( unsigned int  nFreq)
inlinevirtual

设置采集刷新率

Parameters
nFreq刷新频率
Note
可以不实现

◆ SetResolution()

virtual int AVE::SupportsVideoCapture::SetResolution ( int  width,
int  height 
)
pure virtual

设置采集分辨率,采集的分辨率最大不能超过1920*1080

Parameters
width
height
Note
SDK SetVideoResolution异步调用,透传该方法入参
可以不实现

◆ SetView()

virtual int AVE::SupportsVideoCapture::SetView ( void *  view)
pure virtual

设置采集使用载体

Parameters
view跨平台预览载体指针
Note
SDK SetPreviewView同步调用,透传该方法入参
可以不实现

◆ SetViewMode()

virtual int AVE::SupportsVideoCapture::SetViewMode ( int  nMode)
pure virtual

设置采集预览模式

Parameters
nMode取值参考ZegoVideoViewMode
Note
SDK SetPreviewViewMode异步调用,透传该方法入参
可以不实现

◆ SetViewRotation()

virtual int AVE::SupportsVideoCapture::SetViewRotation ( int  nRotation)
pure virtual

设置采集预览的逆时针旋转角度

Parameters
nRotation值为0,90,180,270
Note
SDK SetDisplayRotation 异步调用,主要用于修复移动端的横竖屏旋转问题
可以不实现

◆ StartPreview()

virtual int AVE::SupportsVideoCapture::StartPreview ( )
pure virtual

启动预览

Note
SDK StartPreview异步调用
可以不实现

◆ StopPreview()

virtual int AVE::SupportsVideoCapture::StopPreview ( )
pure virtual

停止预览

Note
SDK StopPreview异步调用
可以不实现

◆ TakeSnapshot()

virtual int AVE::SupportsVideoCapture::TakeSnapshot ( )
pure virtual

对采集预览进行截图,完成后通过client的OnTakeSnapshot方法通知SDK

Note
SDK TakeSnapshotPreview异步调用
可以不实现

The documentation for this class was generated from the following file: