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

Youtube player features availability #1185

Open AsifPatan opened 4 days ago

AsifPatan commented 4 days ago

Question / Problem

Summary

Platform : Android Application

Hey @PierfrancescoSoffritti ,

Is there a way to access the playback speed, quality and other options that will pop out when we click on gear icon in web layout using custom view elements like buttons etc..?

Also , if some video is playing then if i click on the title of video or on the watermark that appears at bottom right it is navigating to youtube app can i prevent these actions without using custom layout

What I've tried

I have tried onclick Listeners for player but could not get it

PierfrancescoSoffritti commented 3 days ago

Is there a way to access the playback speed, quality and other options that will pop out when we click on gear icon in web layout using custom view elements like buttons etc..?

You can set volume, playback rate etc using the YouTubePlayer interface. Currently there is no way to change the quality. Last time I tried it wasn't supported by the IFrame Player (they have an API but was no-op on mobile).

Also , if some video is playing then if i click on the title of video or on the watermark that appears at bottom right it is navigating to youtube app can i prevent these actions without using custom layout

There are hacky ways to remove these elements through CSS. But it's against YouTube terms of service so I wouldn't recommend doing that.