How I can hide controls, full screen buttons in Youtube Player android API?

user2855698 picture user2855698 · Oct 7, 2013 · Viewed 13.4k times · Source

I am trying to hide the buttons in a Youtube video player (api). I used

player.setShowFullscreenButton(false)

this hides the fullscreen button successfully, but I did not find way to hide the control button -- that button can go to youtube application.

I tried using

player.setPlayerStyle(PlayerStyle.MINIMAL);

This hides all buttons, but also changes the progress bar, but I need the old progress bar.

Any help?

Answer

Ibrahim Ulukaya picture Ibrahim Ulukaya · Oct 8, 2013

You can initiate the player as a "Chromeless" player. That should do it.