Skip to content

youtube video stopped working because of redirection to consent page

Description

There is an existing patch to support youtube redirection to consent page when trying to play youtube video in vlc player. This is already fixed for desktop vlc version, but does not work for android version. There are two possible ways to fix the problem with youtube redirection to consent page:

  1. Define new TESTED_HASH in buildsystem/compile.sh:283 where this patch already exist
  2. Add this patch as a separate file, as it's done in the PR.

Unfortunately I wasn't able to build and test it locally, because during the build I have the next error:

~> configure: error: Library libebml >= 1.3.6 libmatroska needed for matroska was not found

Also, just with warning, but not able to find lua.

I am not Android NDK expert, and wasn't able to build missing libraries for the platform. It would be really appreciated, if somebody can provide me any documentation for dummies about how to build native libraries for android with Android NDK.

Expected behavior

Youtube video by provided URL plays in VLC-Android even if youtube redirects to consent page.

Actual behavior

Youtube video does not play in VLC-Android because of redirection to consent page.

Steps to reproduce

Can be related only to EU region:

  1. Copy any URL to youtube video (for example: https://www.youtube.com/watch?v=IMBJnwgPFFA)
  2. Open this link in any web browser with incognito mode (so there are no cookies)
  3. See consent page instead of video to confirm that redirection is happening
  4. Open VLC-Android tap "Add stream" and paste the URL. Tap "Play" button
  5. See, that video is not playing

Screenshot / video

Screenshot_20210604_103718

Context

App version

VLC-Android version: 3.3.4

Android version

11

Device model

Samsung M30s