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
2775
votes
31 answers

How do I get a YouTube video thumbnail from the YouTube API?

If I have a YouTube video URL, is there any way to use PHP and cURL to get the associated thumbnail from the YouTube API?
CodeOverload
  • 47,274
  • 54
  • 131
  • 219
460
votes
12 answers

How can I embed a YouTube video on GitHub wiki pages?

I am fairly new to markup (though it's extremely easy to pickup). I am working on a package and am trying to get the wiki pages looking nice as a help manual. I can insert a YouTube video link into the wiki page pretty easily but how do I embed a…
Tyler Rinker
  • 108,132
  • 65
  • 322
  • 519
338
votes
49 answers

How do I get the YouTube video ID from a URL?

I want to get the v=id from YouTube’s URL with JavaScript (no jQuery, pure JavaScript). Example YouTube URL formats http://www.youtube.com/watch?v=u8nQa1cJyX8&a=GxdCwVVULXctT2lYDEPllDR0LRTutYfW http://www.youtube.com/watch?v=u8nQa1cJyX8 Or any other…
Adam Halasz
  • 57,421
  • 66
  • 149
  • 213
309
votes
20 answers

YouTube API to fetch all videos on a channel

We need a video list by channel name of YouTube (using the API). We can get a channel list (only channel name) by using the below API: https://gdata.youtube.com/feeds/api/channels?v=2&q=tendulkar Below is a direct link of…
Rajendra Dewani
  • 3,281
  • 3
  • 15
  • 8
259
votes
16 answers

How to embed an autoplaying YouTube video in an iframe?

I am trying to embed the new iframe version of a YouTube video and get it to auto play. As far as I can tell, there is no way of doing this by amending flags to the URL. Is there a way to do it by using JavaScript & the API?
472084
  • 17,666
  • 10
  • 63
  • 81
250
votes
5 answers

Embed YouTube video - Refused to display in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'

I am trying to feed my Django page with some resource I am getting from somewhere else. Inside the feed, I have YouTube videos with URL like: https://www.youtube.com/watch?v=A6XUVjK9W4o Once I added this into my page, the video does not show up,…
doniyor
  • 36,596
  • 57
  • 175
  • 260
244
votes
29 answers

Failed to execute 'postMessage' on 'DOMWindow': https://www.youtube.com !== http://localhost:9000

This is the error message that I get: Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://www.youtube.com') does not match the recipient window's origin ('http://localhost:9000'). I've seen other similar problems…
Adam Zerner
  • 17,797
  • 15
  • 90
  • 156
205
votes
8 answers

Youtube - downloading a playlist - youtube-dl

I am trying to download all the videos from the playlist: I am using youtube-dl for this and the command is: youtube-dl -citk –format mp4 –yes-playlist https://www.youtube.com/watch?v=7Vy8970q0Xc&list=PLwJ2VKmefmxpUJEGB1ff6yUZ5Zd7Gegn2 But this…
Dreams
  • 5,854
  • 9
  • 48
  • 71
198
votes
13 answers

How can I autoplay a video using the new embed code style for Youtube?

I can't work out how to autoplay a video using the new embed code style for Youtube. I tried adding &autoplay=1 to the url, which worked with the old style, but it didn't work. For example, http://www.youtube.com/embed/JW5meKfy3fY is the embed link,…
ben
  • 29,229
  • 42
  • 124
  • 179
186
votes
20 answers

Bootstrap 3 and Youtube in Modal

I'm trying to use the Modal feature from Bootstrap 3 to show my Youtube video. It works, but I can't click on any buttons in the Youtube video. Any help on this? Here's my code:
185
votes
6 answers

cast_sender.js error: Failed to load resource: net::ERR_FAILED in Chrome

I recently started receiving the following console errors, without any code changes taking place. I did not install any extensions recently. Failed to load resource: net::ERR_FAILED…
Alex
  • 5,298
  • 4
  • 29
  • 34
176
votes
15 answers

ffprobe or avprobe not found. Please install one

I want to add tags to mp3 converted by youtube-dl & ffmpeg: youtube-dl -o '/Output/qpgTC9MDx1o.mp3' qpgTC9MDx1o -f bestaudio --extract-audio --metadata-from-title "%(artist)s - %(title)s" 2>&1 I have this error in the output result: [youtube]…
Anass
  • 2,101
  • 2
  • 15
  • 20
162
votes
7 answers

How to customize an end time for a YouTube video?

I'm trying to figure out how I can specify a custom end time for an embedded YouTube video. I know that I can customize the start time by adding &start=30, but I haven't seen anything relating to the end time. I need to be able to do this for a web…
Andrew
  • 1,637
  • 2
  • 11
  • 4
155
votes
19 answers

Android YouTube app Play Video Intent

I have created a app where you can download YouTube videos for android. Now, I want it so that if you play a video in the YouTube native app you can download it too. To do this, I need to know the Intent that the YouTube native app puts out in order…
Isaac Waller
  • 32,709
  • 29
  • 96
  • 107
154
votes
22 answers

How can I get a channel ID from YouTube?

I'm trying to retrive the data from my channel using the YouTube Data API V3. For that I need my channel ID. I've tried to find my channel ID from my YouTube account, and I failed in every single way. If anyone have a single tip for me, I would be…
klauskpm
  • 2,965
  • 2
  • 18
  • 29
1
2 3
99 100