Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.2.0
-
None
-
8a3806f6263f56b5be5b557e321b9b13d1913d5f (qt/qtmultimedia/dev) b09502a9e27f312a92e35a799c50493a168e1696 (qt/qtmultimedia/6.2) 9d96fd9ee39ff51c15ca43399db5eadc471888c0 (qt/qtmultimedia/6.2.1) 08c51a63c3 (qt/qtmultimedia/6.2)
Description
The QML Video and MediaPlayer do not allow to use relative URLs as follows:
source: "test.mp4"
The only way to make it work is by using either
source: Qt.resolvedUrl("test.mp4")
or
source: "file:///path/to/test.mp4"
The documentation doesn't mention anything about it and all the examples show relative URLs. The only place where an example actually shows an absolute path is VideoOutput.
I would strongly vote for making relative path work again.
Attachments
Issue Links
- relates to
-
QTBUG-95587 icon.source of Control is not resolved relative to user code
- Closed
For Gerrit Dashboard: QTBUG-96985 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
376760,2 | Resolve a media file path to an absolute path when calling setMedia | dev | qt/qtmultimedia | Status: MERGED | +2 | 0 |
376844,2 | Resolve a media file path to an absolute path when calling setMedia | 6.2.1 | qt/qtmultimedia | Status: MERGED | +2 | 0 |
376845,2 | Resolve a media file path to an absolute path when calling setMedia | 6.2 | qt/qtmultimedia | Status: MERGED | +2 | 0 |
386453,5 | Resolve URL using QML context when setting QMediaPlayer source | dev | qt/qtmultimedia | Status: MERGED | +2 | 0 |
386646,2 | Resolve URL using QML context when setting QMediaPlayer source | 6.3 | qt/qtmultimedia | Status: MERGED | +2 | 0 |
386647,4 | Resolve URL using QML context when setting QMediaPlayer source | 6.2 | qt/qtmultimedia | Status: MERGED | +2 | 0 |