YouTube playback return none element
Summary
Hello, I encounter a problem when playing a YouTube video, whether on a device or the Unity editor, when parsing the url I see no element available. Here is the code to use:
// playing youtube video
var youtubeLink = new Media(new Uri(url));
await youtubeLink.ParseAsync(libVLC, MediaParseOptions.ParseNetwork);
Debug.Log(youtubeLink.SubItems.Count);
mediaPlayer.Media = youtubeLink.SubItems.First();
Relevant logs and/or screenshots
main Debug: Creating an input for preparsing 'watch?v=Cp65R6UneWc'
InvalidOperationException: Sequence contains no elements
Environment
- OS: iOS / MacOS
- Version 16 / 13.6.6
- Device: iPhone XS and Unity Editor
- LibVLC version and architecture 4.0.0-dev-27576-gd3f41ff02a
- LibVLCSharp version 4.0.0.0
- VLC Unity plugin version 0.2.1
- Scripting backend used il2cpp