Youtube videos don't play in VLC Unity aka 4.x
Opened per Martin Finkel from this bug - vlc-unity#104 (comment 263317) "So it plays in 3.x but not in 4.x (e.g vlc-unity or nightly desktop builds). Might be a regression, if so bug report needs to be open at https://code.videolan.org/videolan/vlc"
Summary
When using the vlc asset in unity, which sounds to be 4.x, youtube videos do not play.
Minimal project and steps to reproduce
- Create a new project
- Install the vlc asset
- Attempt to use a youtube url such as the ones below (tried multiple ways) var media = new Media(_libVLC, new Uri("https://www.youtube.com/watch?v=CGXT6fweizE&ab_channel=3DVR360VIDEOS"));
var media = new Media(_libVLC, "https://www.youtube.com/watch?v=CGXT6fweizE&ab_channel=3DVR360VIDEOS", FromType.FromLocation);
- Observe that the video is grey
- Try playing non-youtube media
- Observe that the non-youtube media plays correctly
What is the current bug behavior?
When you play a vlc scene with a youtube video, you see only a grey screen.
What is the expected correct behavior?
It should play the youtube video
Does it work on other plaforms? Does it work with the official VLC apps?
It does work in the VLC app version 3.0.12