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

Method slotRecordVideo

Src/FrmViewer.cpp:577–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

575}
576
577void CFrmViewer::slotRecordVideo(bool bRecord, qreal nRate)
578{
579 m_bRecordVideo = bRecord;
580 if(0 == nRate) {
581 qWarning(log) << "The video frame rate is 0. it is not record static remote desktop."
582 << "If need record static remote desktop,"
583 << "please 'Record->Video->Encoding mode' don't select 'Constant quality' in settings dialog,"
584 << "then set 'Record->Video->Video frame'";
585 return;
586 }
587
588 m_bRecordVideo = false;
589 if(bRecord) {
590 qreal ms = 1000 / nRate;
591 //qDebug(log) << "Rate:" << nRate << ms << "ms";
592 m_TimerRecordVideo.start(ms);
593 }
594 else
595 m_TimerRecordVideo.stop();
596}
597
598void CFrmViewer::slotRecordVideo()
599{

Callers

nothing calls this directly

Calls 2

startMethod · 0.80
stopMethod · 0.80

Tested by

no test coverage detected