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 UNC paths

QMediaPlayer and UNC paths

Scheduled Pinned Locked Moved General and Desktop
qmediaplayerpath
1 Posts 1 Posters 801 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.
  • V Offline
    V Offline
    VictorLamoine
    wrote on last edited by VictorLamoine
    #1

    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 //.

    Example output:

    "//m4800/Partage/111" contains: 
    (".", "..", "HandBrake.txt", "sensors.csv", "video.mov")
    DirectShowPlayerService::doSetUrlSource: Unresolved error code 80004005
    
    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