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
-1
votes
1 answer

How can I make a YouTube embed iframe act like part of the html body for mouse coordinates?

I'm trying to make a mouse trailer for my site, but when hovering over a YouTube iframe the trailer does not follow it into the iframe area. (I'm using js to extract the x and y coordinates of the mouse from the body) I have like no idea how to make…
Ktashi
  • 5
  • 5
-1
votes
1 answer

how to observe embedded youtube video

I want to embed a youtube video on my own website and I want this youtube video not to be skipped in any way, but not to adjust its speed and to track the time it watches, but I could not find any source. I tried to use the youtube iframe api, but I…
-1
votes
2 answers

Embeded Youtube video doesn't work on chrome

I have this piece of code in HTML file And it doesn't work, just saying "Video is unavailable". what should I do to solve this…
-1
votes
3 answers

Generate new iframe YouTube player for multiple instances on a page

The following JavaScript works great when I have only one instance of a YouTube video on a page: function createVideo(playerElement, videoID, autoplay=false) { const youtubeScriptId = 'youtube-api'; const youtubeScript =…
-1
votes
1 answer

How do I remove the black side bars from my video header youtube link in Wordpress Twenty-Seventeen?

I used the twenty-seventeen customize tool to add an embedded youtube video to my header-media, by only providing a link url. But it displays with 2 black side bars, on the left and right of the video. From reading other posts, this is how Youtube…
Isabelle
  • 1
  • 1
-1
votes
1 answer

YouTube Updated API rel:0 deprecation alternative to custom coding

is there an OOB to the rel:0 api playerVars? The documentation states it's deprecated, but no mention of replacement? https://developers.google.com/youtube/player_parameters#release_notes_08_23_2018 Thanks!
-1
votes
2 answers

Adding Image to the background youtube video on iframe tag

After applying this code I am getting video over Image but I want to add Image over you-tube with play button on it In this code when I increase the padding of the div which is (padding: 18px) now video get shorter and background Image comes on…
Anurag Ranjan
  • 63
  • 3
  • 10
-1
votes
2 answers

The parameters 'showinfo' and 'rel' doesnt work with the new player version

When I set the config to the iframe with the new player version, it doesn't work. I'm setting the config on this way on the iframe URL:
-1
votes
2 answers

I want to embed youtube video and also show gallery/playlist

I want to show in a gallery all of the videos from our youtube channel. I am using But when I try to make video full screen it says that I can't do this. How do I fix this? You can…
user2950593
  • 9,233
  • 15
  • 67
  • 131
1 2 3
54
55