MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / Start

Method Start

Src/RecordVideo.cpp:77–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77int CRecordVideo::Start(const QString &szFile)
78{
79 int nRet = 0;
80 qDebug(log) << "Start";
81#if QT_VERSION >= QT_VERSION_CHECK(6, 8, 0)
82 m_Parameter.SetEnable(true);
83 m_Parameter >> m_Recorder;
84 m_CaptureSession.setVideoFrameInput(&m_VideoFrameInput);
85 //m_CaptureSession.setAudioBufferInput(&m_AudioBufferInput);
86 m_CaptureSession.setRecorder(&m_Recorder);
87 m_Recorder.setOutputLocation(QUrl::fromLocalFile(m_Parameter.GetFile(true)));
88 m_Recorder.record();
89#endif
90 return nRet;
91}
92
93int CRecordVideo::Stop()
94{

Callers 1

runMethod · 0.45

Calls 2

SetEnableMethod · 0.80
GetFileMethod · 0.45

Tested by

no test coverage detected