Video.play返回DirectShowPlayerService :: doSetUrlSource:未解决的错误代码800c000d [英] Video.play returns DirectShowPlayerService::doSetUrlSource: Unresolved error code 800c000d
问题描述
使用Qt版本5.4.2
Using Qt Version 5.4.2
返回的错误代码:DirectShowPlayerService :: doSetUrlSource:未解决的错误代码800c000d
Error code returned : DirectShowPlayerService::doSetUrlSource: Unresolved error code 800c000d
已使用以下视频QML类型编写了一个QML文件.我已经在项目文件(.pro)
A QML file has been written with the Video QML type as below. I have added the below in the project file (.pro)
Qt + =多媒体
QML文件中的以下代码段.
Snippet of code as below in the QML file.
Video {
id: video
width : 800
height : 600
source : "Video.mp4"
MouseArea {
anchors.fill: parent
onClicked: {
video.play();
}
}
focus: true
Keys.onSpacePressed: video.playbackState == MediaPlayer.PlayingState ? video.pause() : video.play()
Keys.onLeftPressed: video.seek(video.position - 5000)
Keys.onRightPressed: video.seek(video.position + 5000)
}
任何有关此错误的指针都会有所帮助.
Any pointers regarding this error would be helpful.
推荐答案
我遇到了同样的问题,并通过以下方法解决了该问题:
I faced the same issue, fixed it by:
改变
source: "file://D:/Temp/video/ccc.wmv"
到
source: "file:///D:/Temp/video/ccc.wmv"
所提及的消息 doSetUrlSource
指示可能使用了错误的URL.
as the message mentioned doSetUrlSource
indicates may using the wrong URL.
这篇关于Video.play返回DirectShowPlayerService :: doSetUrlSource:未解决的错误代码800c000d的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!