Skip to content

Android - trying to recompile fixed Youtube Url parser from vlc master

Summary

Youtube layout changed, so youtube url descrambling is no longer working. There is already a fix on master vlc repo, the compiled luac file just needs updated, afaict but I think that means that LibVLCSharp will need updated first?

Minimal project and steps to reproduce

Open "VLC Canvas Example"
change VLC Player Example (Script) > Path to `https://www.youtube.com/watch?v=aqz-KE-bpKQ` (big buck bunny)
Enable Log to Console
Hit Play
Check Console Log for Error

What is the current bug behavior?

try to open path: Open("https://www.youtube.com/watch?v=aqz-KE-bpKQ") (big buck bunny) get error (see below in relevant logs)

What is the expected correct behavior?

it should descramble the youtube stream path and play the Youtube video

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

tested url https://www.youtube.com/watch?v=aqz-KE-bpKQ (big buck bunny) on v4 nightly (desktop) and the video plays a pull request that fixes this issue has already been merged into master: vlc!2850 (merged)

Relevant logs and/or screenshots

Detected new YouTube HTML code layout
Couldn't extract youtube video URL, please check for updates to this script

image

Environment

  • OS: Android 12
  • Version 12
  • Device: Samsung Galaxy S10 5G UW
  • LibVLC version and architecture 4.0.0-dev-20419-g490c04ad03
  • LibVLCSharp version 4.0.0.0
  • VLC Unity plugin version 0.1.6
  • Scripting backend used Mono

Possible fixes

(See referenced pull request already merged to master) I tried replacing the youtube.luac file, but then I get bad binary format (version mismatch)

Edited by Jake Downs