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

Method slotRecord

Src/BackendDesktop.cpp:398–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396
397#if HAVE_QT6_RECORD
398void CBackendDesktop::slotRecord(bool bRecord)
399{
400 qDebug(log) << Q_FUNC_INFO << bRecord;
401 if(bRecord) {
402 if(QMediaRecorder::RecordingState == m_Recorder.recorderState())
403 return;
404 (*m_pParameterRecord) >> m_Recorder;
405 m_CaptureSession.setVideoFrameInput(&m_VideoFrameInput);
406 m_CaptureSession.setRecorder(&m_Recorder);
407 m_Recorder.record();
408 } else {
409 m_Recorder.stop();
410 m_CaptureSession.setVideoFrameInput(nullptr);
411 m_CaptureSession.setAudioBufferInput(nullptr);
412 m_CaptureSession.setRecorder(nullptr);
413 }
414 emit sigRecordVideo(bRecord, m_pParameterRecord->GetVideoFrameRate());
415}
416
417void CBackendDesktop::slotRecordPause(bool bPause)
418{

Callers

nothing calls this directly

Calls 2

stopMethod · 0.80
GetVideoFrameRateMethod · 0.80

Tested by

no test coverage detected