Kotz
Kotz

Reputation: 89

Youtube API, disallowing controls except for the sound control?

Would there be a way to, using the Youtube API, only show the volume control? Much like setting "controls=0", except keeping the volume button.

Upvotes: 1

Views: 1323

Answers (2)

Teyam
Teyam

Reputation: 8112

If you're referring to automatically hiding YouTube controls, Supported Parameters in YouTube Embedded Players and Player Parameters states that supported values to autohide for AS3 player are as follows:

  • 2 (default) – If the player has a 16:9 or 4:3 aspect ratio, the video progress bar and player controls display or hide automatically. Otherwise, those controls are visible throughout the video.

  • 1 – Regardless of the player's dimensions, the video progress bar and player controls display or hide automatically.

  • 0 – Regardless of the player's dimensions, the video progress bar and player controls are visible throughout the video.

And to display controls for HTML5 or AS3, you may use controls with the following values:

  • controls=0 – Player controls do not display in the player. For IFrame embeds, the Flash player loads immediately.

  • controls=1 (default) – Player controls display in the player. For IFrame embeds, the controls display immediately and the Flash player also loads immediately.

  • controls=2 – Player controls display in the player. For IFrame embeds, the controls display and the Flash player loads after the user initiates the video playback.

Upvotes: 1

johnh10
johnh10

Reputation: 4185

The YouTube API does not control the video player.

All player parameters can be found here.

Upvotes: 0

Related Questions