Media player
-
Item {
MediaPlayer {
id: mediaplayer
source: "/videos/video.mp4"
}VideoOutput { anchors.fill: parent source: mediaplayer } MouseArea { id: playArea anchors.fill: parent onPressed: mediaplayer.play(); } }
while running this code i am getting following error, can someone tell me, what's this ?
DirectShowPlayerService::doRender: Unresolved error code 0x8004022a ()
-
I tried with other format also, showing the same error.
-
@Bhushan99
You can try to install K-Lite Codec Pack as suggested in this bug report : https://bugreports.qt.io/browse/QTMOBILITY-1461 -
Hi,
@Bhushan99 said in Media player:
source: "/videos/video.mp4"
Since you have a DirectShow error, you are likely running on Windows, that path looks a bit strange, where exactly do you have
video.mp4
on your computer ? -
I tried with other format also, showing the same error.
-
Hi,
@Bhushan99 said in Media player:
source: "/videos/video.mp4"
Since you have a DirectShow error, you are likely running on Windows, that path looks a bit strange, where exactly do you have
video.mp4
on your computer ?@SGaist i have added video in a project folder.
-
@SGaist i have added video in a project folder.
@Bhushan99
Do you have a qrc file associated with it ? -
@Bhushan99
Do you have a qrc file associated with it ?@DavidM29 in qml.qrc , i have two folders, one folder contains main.qml and another contain a video
-
That’s not a valid qrc path.
-
@DavidM29 It worked, after installing codec, Thank you. :)