


(This question is NOT a duplicate of Loading video using QMediaPlayer and UNC paths because my code IS working on Windows and I'm having a different problem with Mac-friendly paths. I should point out that yes these are network paths, being sent to a method called 'fromLocalFile', but the documentation for QUrl does state that it will work with network paths: so I don't think that should be the issue?Ĭan somebody please explain to me the proper way to make this work? I assume Pathlib should be able to use this and I'm just approaching it the wrong way. I'm getting results like "/11.22.33.44/file/movie.mp4" where there's both a backslash and a foreslash at the start, things like that.

I'm always hitting Error: Failed to load media. I've tried various os.path and pathlib examples online, but none of them seem to create a valid path that omLocalFile will work with. However there's a requirement to make this work on Mac as well, and I'm hitting problems getting the Windows UNC path into a QUrl format that works on Mac. On Windows, it's working fine, and: (QMediaContent(omLocalFile(str(fileName)))) I'm now working on a Python media player using PyQt5's QMediaPlayer. But Davis’ recent transfer does give UNC two new subtle angles to. (The Windows format is a legacy thing and I can't fundamentally change how these are stored). Coach Mack Brown’s program can’t offer Davis the same lofty CFP success pitch as, say, an Alabama or Georgia or Ohio State. Background: I've got a database where paths to video files are stored as Windows UNC path strings, for example "\\11.22.33.44\path\movie.mp4".
