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. QMediaPlayer and network files on Windows
Forum Updated to NodeBB v4.3 + New Features

QMediaPlayer and network files on Windows

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 181 Views
  • 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.
  • K Offline
    K Offline
    kazaak
    wrote on last edited by kazaak
    #1

    The QMediaPlayer docs mention that QMediaMetaData is only available for local files on Windows but makes no mention of playing media on a network drive, for example. I don't understand why this would be a limitation since all other QFile and QFileInfo and related operations work fine. I've tried to load a network file on QMediaPlayer with the following:

    • Using the direct network path
    • Changing backslashes the forward slashes
    • Using QUrl::fromLocalFile() and QUrl::toLocalFile()
    • I've tried replacing the network name with the IP address of the NAS where the files are

    Nothing seems to work. Surely I'm missing something to load and play these files. If this truly isn't possible I'd like to better understand the limitations so I can work around it in future applications. This has been the case with the default backend for Qt 6.4.3 (WMF) and when I changed it to ffmpeg via environment variable QT_MEDIA_BACKEND=ffmpeg.

    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