QML Video on Android does not load from URLs
-
I try to run the MediaPlayerApp from Qt6.6.1 examples.
On Linux it all works fine, but not on Android.On Android it seems it can only play video from local files, but not from a URL.
The example code has this as source for MediaPlayer:
source: new URL("https://download.qt.io/learning/videos/media-player-example/Qt_LogoMergeEffect.mp4")
When it tries to load it gives the error string: "Could not open file"
I have tried with other URL. Every time I get the same error.When I download the file myself on Android and the provide the file as source, then it plays!
Is this a bug?
-
Hi,
Did you also deploy the OpenSSL librairies with your Androïd application ?
-
@SGaist Yes
I found a bug report that describes the problem I encountered: https://bugreports.qt.io/browse/QTBUG-113980?jql=text ~ "qml android play video"It says that it is fixed in Qt6.6.1 That does not seem the case as I got exactly this problem in 6.6.1
-
@SGaist Yes
I found a bug report that describes the problem I encountered: https://bugreports.qt.io/browse/QTBUG-113980?jql=text ~ "qml android play video"It says that it is fixed in Qt6.6.1 That does not seem the case as I got exactly this problem in 6.6.1
@Michel-de-Boer then you should update the report to add your findings.
-
@Michel-de-Boer then you should update the report to add your findings.
@SGaist I have created a new BUG report with my findings and referred to the one I found. That one was closed and I could not add to it.
Also I have tried 6.7.0-dev snapshot. There the bug is fixed!
Unfortunately that is not a viable solution as that snapshot is quite unstable. -
@SGaist I have created a new BUG report with my findings and referred to the one I found. That one was closed and I could not add to it.
Also I have tried 6.7.0-dev snapshot. There the bug is fixed!
Unfortunately that is not a viable solution as that snapshot is quite unstable.@Michel-de-Boer can you post the link to your report ? That will make it even easier to find and follow.
-
@SGaist Ah yes. Forgot to add it. Here it is:
https://bugreports.qt.io/browse/QTBUG-119788 -