QMediaPlayer and UNC paths
I'm trying to load a video from a network using UNC paths.
The code snippet is the following one:
projectDirectory = QFileDialog::getExistingDirectory (this, tr ("Choose project folder (sensor + video data"), QDir::homePath(), QFileDialog::ShowDirsOnly); QDir dir(projectDirectory); QStringList test = dir.entryList(); qDebug () << projectDirectory << "contains:" << endl << test; mediaPlayer.setMedia(QUrl::fromLocalFile(projectDirectory+"/video.mov"));
The code snippet works for a local file but doesn't work when the path begins with
"//m4800/Partage/111" contains: (".", "..", "HandBrake.txt", "sensors.csv", "video.mov") DirectShowPlayerService::doSetUrlSource: Unresolved error code 80004005