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 ()
-
It's probably a codec problem. Can you try with another video format to see if there is any change. A format that is kind of standard for your OS.
-
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 ? -
Most the doRender() errors occur when there is no suitable filter or codec for the media.
0x8004022A: This pin cannot use the supplied media type.
As @DavidM29 says, install the codec first.
-
@SGaist i have added video in a project folder.
-
@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
-
Did you try to install the codec ?
-
That’s not a valid qrc path.
-
@DavidM29 It worked, after installing codec, Thank you. :)
Post 6 of 12