Questions tagged [youtube]

YouTube is a video-sharing website on which users can upload, share, and view videos. StackOverflow questions tagged with "youtube" should be about specific programming problems, software tools, or libraries. If your question is about the YouTube API, the "youtube-api" tag should also be added.

YouTube is a video-sharing website on which users can upload, share, and view videos, created by three former PayPal employees in February 2005. In November 2006, YouTube, LLC was bought by Google Inc. for $1.65 billion, and now operates as a subsidiary of Google.

Most of the content on YouTube has been uploaded by individuals, although media corporations including CBS, BBC, Vevo, and other organizations offer some of their material via the site, as part of the YouTube partnership program.

Unregistered users may watch videos, and registered users may upload an unlimited number of videos. Videos that are considered to contain potentially offensive content are available only to registered users 18 and older.


Resources :

15964 questions
141
votes
8 answers

Show Youtube video source into HTML5 video tag?

I'm trying to put a YouTube video source into the HTML5
sri
  • 3,319
  • 7
  • 34
  • 48
141
votes
11 answers

Shrink a YouTube video to responsive width

I have a YouTube video embedded on our website and when I shrink the screen to tablet or phone sizes it stops shrinking at around 560px in width. Is this standard for YouTube videos or is there something that I can add to the code to make it go…
MattM
  • 3,089
  • 7
  • 40
  • 62
136
votes
9 answers

Youtube iframe wmode issue

Using javascript with jQuery, I am adding an iframe with a youtube url to display a video on a website however the embed code that gets loaded in the iframe from youtube doesnt have wmode="Opaque", therefore the modal boxes on the page are shown…
snakeyyy
  • 1,822
  • 2
  • 13
  • 14
134
votes
10 answers

YouTube Video Embedded via iframe Ignoring z-index?

I'm trying to implement a horizontal multilevel dropdown navigation menu. Immediately below (vertically) the menu, I've got a YouTube video embedded via iframe. If I hover over one of the main level nav items in Firefox, the dropdown menu properly…
user249493
  • 2,253
  • 5
  • 23
  • 22
129
votes
10 answers

Youtube_dl : ERROR : YouTube said: Unable to extract video data

I'm making a little graphic interface with Python 3 which should download a youtube video with its URL. I used the youtube_dl module for that. This is my code : import youtube_dl # Youtube_dl is used for download the video ydl_opt = {"outtmpl" :…
Bastien
  • 1,447
  • 3
  • 9
  • 19
119
votes
5 answers

Force HTML5 youtube video

Regarding the Youtube API Blog they are experimenting with their new HTML5 Video Player. Apparently to play a video in html5, you have to use the iframe embedding code :
Timo Huovinen
  • 53,325
  • 33
  • 152
  • 143
101
votes
6 answers

How do you use youtube-dl to download live streams (that are live)?

Is it possible to use youtube-dl to download video from a .m3u8 stream file or other livestream formats? When I copy the video URL into YouTube-dl it spits out: [https @ 0x7fc351416080] inflate return value: -3, incorrect header check Last message…
user2824852
  • 1,151
  • 2
  • 8
  • 8
99
votes
2 answers

How to detect when a youtube video finishes playing?

I am working on a site that has a ton of embedded youtube videos, the client wants to show a popup whenever a video stops splaying. I looked at the youtube api and there seems to be a way to detect when a video…
user967451
99
votes
12 answers

YouTube: How to present embed video with sound muted

I'm trying to embed a video with the sound muted but I can not figure out how it make it work. Currently I'm using this but doesn't work: