Open Sylva1n opened 7 years ago
The bug is fixed by adding this instruction in the main():
qputenv("QSG_RENDER_LOOP", "basic");
Anyway, it may alter the performance.
What do you think about it?
Try the latest code
Crash also happens with Felgo.
When a Page with a Video component is pushed into NavigationStack (The page becomes the current page) the video file can be played well. But crash always happens when invoking navigationStack.pop() which means going back to the previous Page.
import QtQuick 2.0
import Felgo 3.0
import QtAV 1.7
Page {
id: page
property alias source: video.source
Video {
id: video
autoPlay: true
videoCodecPriority: ["HW", "FFmpeg"]
width: dp(320)
height: dp(240)
onErrorChanged: console.log("onErrorChanged: " + error)
onErrorStringChanged: console.log("onErrorStringChanged: " + errorString)
}
MouseArea {
anchors.fill: parent
onClicked: {
video.stop()
page.navigationStack.pop()
}
}
}
Versions:
Qt: 5.11.1 QtAV: 1.12.0 Felgo: 3.1.0 iPhoneOS.platform: iPhoneOS12.2.sdk
This workaround
qputenv("QSG_RENDER_LOOP", "basic");
also works on iOS as @Sylva1n mentioned.
Hi,
with Qt 5.7.0 and QtCreator 4.1.0, this minimal Qt project crashes (QtAVVideoBug). I tested it on MacOs, i0s and Android.
Download the project here: QtAVVideoBug.zip
Here comes its QML:
I can't figure out if it comes from QtAV or Qml.
What is your opinion?
Thanks