Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. QMediaPlayer 无法播放网络视频
Qt 6.11 is out! See what's new in the release blog

QMediaPlayer 无法播放网络视频

Scheduled Pinned Locked Moved Chinese
4 Posts 2 Posters 7.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hooleego
    wrote on last edited by
    #1

    大家好,最近在研究在WIndows中用QMediaPlayer做一个播放器。我下载了QtMobility中的player例子的源码,编译运行后播放本机的视频文件,一切正常。当把本地视频换成 http://www.somewebsite.com/video.avi 时,出现如下错误:
    DirectShowPlayerService::doRender: Unresolved error code 80040218
    这个网络上的视频是我放在一个服务器上的,下载没有问题。这是什么问题?大家有碰到过类似的问题吗?

    1 Reply Last reply
    0
    • F Offline
      F Offline
      foxgod
      wrote on last edited by
      #2

      看你的操作系统是什么,window系统QMediaPlayer不是什么格式都支持的,不过好像AVI是支持的。

      1 Reply Last reply
      0
      • H Offline
        H Offline
        hooleego
        wrote on last edited by
        #3

        不折腾了,我已经用VLC替换QMediaPlayer了

        1 Reply Last reply
        0
        • F Offline
          F Offline
          foxgod
          wrote on last edited by
          #4

          你使用VLC播放是用VLC的源代码写的,还是用process调用vlc.exe呢??

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved