标题:qt6,qml中的MediaRecorder,pause后再record,duration变大很多
作者:1020219467
日期:2023-12-01 14:41
内容:
代码:
import QtQuick
import QtQuick.Window
import QtCharts
import QtMultimedia
import QtQuick.Controls
Window {
width: 640
height: 480
visible:true
Row{
Button{
width: 100
height: 100
text:"pause"
z: 1
onClicked: {
if (text == "pause") {
recorder.pause()
text = "continue"
} else if(text == "continue"){
recorder.record()
text = "pause"
}
}
}
Button{
width:100
hei ..