Questions tagged [youtube-iframe-api]

The IFrame player API lets you embed a YouTube video player on your website and control the player using JavaScript.

The IFrame player API lets you embed a YouTube video player on your website and control the player using JavaScript. Unlike the Flash and JavaScript player APIs, which both involve embedding a Flash object on your web page, the IFrame API posts content to an <iframe> tag on your page. This approach provides more flexibility than the previously available APIs since it allows YouTube to serve an HTML5 player rather than a Flash player for mobile devices that do not support Flash.

YouTube Player API Reference: https://developers.google.com/youtube/iframe_api_reference

813 questions
11
votes
1 answer

YouTube iframe without allow-presentation

I am building an extension for Content management system admin UI. The extension is hosted by the CMS in a sandboxed iframe. The purpose of the extension is to embed a youtube video so that the user is able to see its preview. So it is an iframe…
martinh_kentico
  • 913
  • 7
  • 17
11
votes
2 answers

Youtube iframe api allow="autoplay" Chrome 65

Chrome 65, the current canary version, is blocking iframed youtube videos from auto playing with sound. The latest changes to Chrome require the iframe to have allow="autoplay" How do I go about adding allow="autoplay" to the youtube iframe api? I…
Alex G
  • 151
  • 1
  • 1
  • 6
10
votes
0 answers

Youtube iframe api: interact with MediaSession

I have an angular app with the Youtube IFrame API. When the website/pwa is used on an android device, and a Youtube video is playing, the app automatically creates a notification in the android notification tray, allowing you to see what video is…
10
votes
3 answers

CSS - 100% width of Youtube embed video

HTML: