PierfrancescoSoffritti / android-youtube-player

YouTube Player library for Android and Chromecast, stable and customizable.
https://pierfrancescosoffritti.github.io/android-youtube-player/
MIT License
3.44k stars 765 forks source link

How can I find out the planned videos? #1035

Open memobeyle opened 1 year ago

memobeyle commented 1 year ago

Hello,

If a video is scheduled, is there a way to know if it is scheduled? (For processing scheduled videos)

image

Serkali-sudo commented 1 year ago

There is no direct method in the API to check if video is scheduled.

But since this library loads html and you can edit the js you can check the visibility of spesific elements that only appears in the scheduled videos. If the spesific elements exists and visible in the html then it would mean that the video is scheduled. Check for the visibility or existence of spesific elements and send the result to your code in boolean