QMediaPlayer and network files on Windows
Unsolved
General and Desktop
-
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.