Video.play 返回 DirectShowPlayerService::doSetUrlSource: Unresolved error code 800c000d [英] Video.play returns DirectShowPlayerService::doSetUrlSource: Unresolved error code 800c000d

查看:16
本文介绍了Video.play 返回 DirectShowPlayerService::doSetUrlSource: Unresolved error code 800c000d的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 Qt 版本 5.4.2

Using Qt Version 5.4.2

返回错误代码:DirectShowPlayerService::doSetUrlSource: Unresolved error code 800c000d

Error code returned : DirectShowPlayerService::doSetUrlSource: Unresolved error code 800c000d

已使用 Video 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: Unresolved error code 800c000d的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆