4

I am using YouTube API in my android application. I need to disable some controls of the YouTube player. So that i used YouTubePlayer.PlayerStyle enum class.

youTubePlayer.setPlayerStyle(YouTubePlayer.PlayerStyle.MINIMAL);

But in this case, A minimal style, showing a time(seek) bar and play/pause controls. I have to enable only play/pause controls and i have to disable seek bar. How can i do that????

Manikandan.S
  • 41
  • 1
  • 5

1 Answers1

1

I don't think there is a direct way to do this. You can set the playstyle to MINIMAL(this keeps the play/pause button) and add your own custom seek bar using a SeekBar view.

You can see a sample code for it here.

Shreyas
  • 311
  • 2
  • 9