LiteAVSDK
腾讯云音视频 SDK ,服务于数万家企业客户的高可用组件,致力于最大限度地节省您的研发成本。
ITXLiteAVLocalRecord

Public 成员函数

 ~ITXLiteAVLocalRecord ()
 
void setCallback (ITXLiteAVLocalRecordCallback^ callback)
 
void startLocalRecord (TRTCScreenCaptureSourceInfo^ % source, RECT^ % captureRect, String^ szRecordPath)
 
void stopLocalRecord ()
 
void pauseLocalRecord ()
 
void resumeLocalRecord ()
 

静态 Public 成员函数

static ITXLiteAVLocalRecordGetLiteAVLocalRecordInstance ()
 
static void destroyLiteAVLocalRecordInstance ()
 

构造及析构函数说明

◆ ~ITXLiteAVLocalRecord()

成员函数说明

◆ destroyLiteAVLocalRecordInstance()

static void destroyLiteAVLocalRecordInstance ( )
static

ITXLiteAVLocalRecord

◆ GetLiteAVLocalRecordInstance()

static ITXLiteAVLocalRecord ^ GetLiteAVLocalRecordInstance ( )
static

ȡ ITXLiteAVLocalRecord

◆ pauseLocalRecord()

void pauseLocalRecord ( )

ͣ¼

◆ resumeLocalRecord()

void resumeLocalRecord ( )

ָ¼

◆ setCallback()

void setCallback ( ITXLiteAVLocalRecordCallback callback)

ע᱾¼¼صӿ

参数
callbackITXLiteAVLocalRecordCallback صָ룬ڻص¼ƵϢ

◆ startLocalRecord()

void startLocalRecord ( TRTCScreenCaptureSourceInfo^ %  source,
RECT^ %  captureRect,
String^  szRecordPath 
)

¼ ƵԴ֧¼

  • ¼Ļsource type Ϊ Screen sourcecaptureRect Ϊ { 0, 0, 0, 0 }
  • ¼ָsource type Ϊ Screen sourcecaptureRect Ϊ NULL { 100, 100, 300, 300 }
  • ¼ڣsource type Ϊ Window sourcecaptureRect Ϊ { 0, 0, 0, 0 }
  • ¼ƴsource type Ϊ Window sourcecaptureRect Ϊ NULL { 100, 100, 300, 300 }
  • captureRect ȡֵ¼Ļ򴰿ڱ߽磬ᱻĬΪ { 0, 0, 0, 0 }

ƵԴַͨʽȡ

  • SDK API ȡITXLivePusher ṩ getScreenCaptureSources API ȡ¼ƵĴڡĻб
  • ϵͳ API ȡȡҪ¼ƵĴڡĻ LiteAVScreenCaptureSourceInfo ¼Ϣṹд typesourceIdֶΡ
参数
sourceָ¼ݣο LiteAVScreenCaptureSourceInfo
captureRectָ¼Ŀ
szRecordPath¼ļȫ·ֻ֧ .mp4 ʽ( egE:\tencent\test.mp4 )

◆ stopLocalRecord()

void stopLocalRecord ( )

ֹͣ¼