Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. DirectShow plugin can't load from URL
Forum Updated to NodeBB v4.3 + New Features

DirectShow plugin can't load from URL

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.4k 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.
  • C Offline
    C Offline
    CarryGun
    wrote on last edited by
    #1

    Hello everyone.

    I have Qt 5.1.1 (also tested on 5.1.0 and 5.0.1), Win7x64 and I'm trying to play audio from URL using QMediaPplayer, but it doesn't works. I've created instance of QMediaplayer and simply sets the URL by setMedia() method:

    @
    m_player = new QMediaPlayer(this);
    ...
    m_player->setMedia(QMediaContent(url));
    m_player->play();
    @

    I also connected to QMediaPlayer slot mediaStatusChanged() to watch status, here is the output:
    QMediaPlayer::LoadingMedia
    DirectShowPlayerService::doSetUrlSource: Unresolved error code 800c0008
    QMediaPlayer::InvalidMedia

    The URL is valid and file at the URL is valid, it can be playable by setting media with QUrl::fromLocalFile() method. I've tried ti find what error 800c0008 means, but there is no results. It only means that some part of plugin cant load file from URL. I scanned my network with Wireshark and there is no any GET requests. For example QNetworkAccessManager loads that URL fine and i can track it in Wireshark.

    There is also no such error for DirectShow at MSDN: http://msdn.microsoft.com/en-us/library/windows/desktop/dd375623(v=vs.85).aspx

    On the other pc's code works fine. Whats the problem? How to solve it?

    0xc0de1e55

    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