Skip to content

Cannot play files from OneDrive with LibVLC.UWP 3.3.0

Summary

After upgrading LibVLC.UWP from version 3.1.1.1 to 3.3.0 it fails to play videos that are hosted on OneDrive when using the download URL's.

Minimal project and steps to reproduce

To reproduce this you need a way to get the download URL of a file that is hosted on OneDrive. I came up with 2 possible solutions for this.

  1. Get a download URL of a OneDrive file. You can use Microsoft Graph Explorer for that.

Then insert the download URL in this code snippet

MediaPlayer.Play(new Media(LibVLC, new Uri([InsertDownloadURLHere])));

  1. Clone the Debug branch of my Git repo and it will print the download URL of each file you start playing.

What is the current bug behavior?

When using the download URL of a OneDrive file it fails to play.

What is the expected correct behavior?

That the download URL of a OneDrive file gets played.

Does it work on other plaforms? Does it work with the official VLC apps?

I have tested it with the VLC WinRT version and it works.

It also works on the normal desktop version. log

Relevant logs and/or screenshots

The debug output on version 3.1.1.1: log

The debug output on version 3.3.0: log

Environment

  • OS: Windows 10
  • Version 1903
  • Device: Laptop
  • LibVLC version and architecture: LibVLC.UWP 3.3.0, x86-64
  • LibVLCSharp version: 3.4.6

Possible fixes

N/A

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information