Commit 2529261a authored by Julius Künzel's avatar Julius Künzel 💬
Browse files

[Qt6] Disable more parts of Mediacapture for Qt6 (TODO: port)

parent fe853208
......@@ -510,15 +510,18 @@ void MediaCapture::setAudioVolume()
if (m_audioRecorder) {
m_audioRecorder->setVolume(linearVolume);
}
if (m_audioInput) {
m_audioInput->setVolume(linearVolume);
}
#else
// TODO: Qt6
/*if (m_audioRecorder) {
m_audioRecorder->setVolume(linearVolume);
}*/
#endif
}
if (m_audioInput) {
m_audioInput->setVolume(linearVolume);
}
}*/
#endif
}
int MediaCapture::getState()
......@@ -556,15 +559,19 @@ bool MediaCapture::isRecording() const
if (m_readyForRecord || (m_audioRecorder && m_audioRecorder->state() != QMediaRecorder::StoppedState)) {
return true;
}
if (m_videoRecorder && m_videoRecorder->state() != QMediaRecorder::StoppedState) {
return true;
}
#else
//TODO: Qt6
/*if (m_readyForRecord || (m_audioRecorder && m_audioRecorder->state() != QMediaRecorder::StoppedState)) {
return true;
}*/
#endif
}
if (m_videoRecorder && m_videoRecorder->state() != QMediaRecorder::StoppedState) {
return true;
}
}*/
#endif
return false;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment