Questions tagged [youtube-javascript-api]

The YouTube JavaScript Player API allows users to control the YouTube chromeless or embedded video players via JavaScript.

The JavaScript Player API allows users to control the YouTube chromeless or embedded video players via JavaScript. Calls can be made to play, pause, seek to a certain time in a video, set the volume, mute the player, and other useful functions.

The JavaScript Player API for <iframe> embeds is an experimental method for embedding and controlling YouTube videos in frames via JavaScript.

Q&A: Undocumented features:

845 questions
165
votes
7 answers

YouTube iframe API: how do I control an iframe player that's already in the HTML?

I want to be able to control iframe based YouTube players. This players will be already in the HTML, but I want to control them via the JavaScript API. I've been reading the documentation for the iframe API which explain how to add a new video to…
agente_secreto
  • 7,959
  • 16
  • 57
  • 83
89
votes
14 answers

How to pause a YouTube player when hiding the iframe?

I have a hidden div containing a YouTube video in an