youtube

YouTube iframe API: can't make it responsive

走远了吗. 提交于 2019-12-21 09:17:24
问题 I'm trying to implement a Youtube video via the iFrame API. I need to catch some events so embedding the player alone is not an option. Everything is working fine as explained in the docs, I'm calling the video like this: var tag = document.createElement('script'); tag.src = "https://www.youtube.com/iframe_api"; var firstScriptTag = document.getElementsByTagName('script')[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); var player; function onYouTubeIframeAPIReady() { if($("

How to embed YouTube videos without cookies?

此生再无相见时 提交于 2019-12-21 09:16:52
问题 In the past we could embed YouTube videos without cookies by simply pointing to a different URL, so for example https://youtube-nocookie.com/embed/sRrqF8eXs38 to get the version without cookies. This does not work any longer. The URL returns a 404 , where the cookie version still exists. I could not find any reference on how to do it now. 回答1: Use the www version, that works perfectly fine: https://www.youtube-nocookie.com/embed/sRrqF8eXs38 That is the version their automatic code generator

Embed a YouTube video in HTML5 without Flash

允我心安 提交于 2019-12-21 09:06:35
问题 Is it possible to embed a YouTube video on your own website using HTML5, so it can be played on Safari on iPhone without Flash? 回答1: According to http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html: <iframe src="http://www.youtube.com/embed/VIDEO_ID"></iframe> That will play in HTML5 video (falling back on Flash when HTML5 video is unavailable). 来源: https://stackoverflow.com/questions/3919856/embed-a-youtube-video-in-html5-without-flash

Attempted Frozen Title Change: Any FB developers?

不想你离开。 提交于 2019-12-21 07:57:32
问题 This has been asked a few times over the past couple of years but as Facebook tells me "Facebook engineers actively participate on StackOverflow.." So I'm hoping get get some joy here. We have uploaded a video to youtube, passed it round and made sure we are happy with it, made it public and tried to change the title from 'xxx - final' to the actual title. However, Facebook shares are showing the old prerelease title but not the actual title, leading to much confusion amongst our subscribers

Attempted Frozen Title Change: Any FB developers?

ぐ巨炮叔叔 提交于 2019-12-21 07:57:09
问题 This has been asked a few times over the past couple of years but as Facebook tells me "Facebook engineers actively participate on StackOverflow.." So I'm hoping get get some joy here. We have uploaded a video to youtube, passed it round and made sure we are happy with it, made it public and tried to change the title from 'xxx - final' to the actual title. However, Facebook shares are showing the old prerelease title but not the actual title, leading to much confusion amongst our subscribers

YouTube iframe player - trigger fullscreen on iOS

不想你离开。 提交于 2019-12-21 07:36:27
问题 Using the YouTube iframe embed player, is there a way to trigger fullscreen programatically? I want to remove the default controls (using controls=0) but then have the ability to create custom fullscreen button by itself. 回答1: Make the iframe not fullscreen but fullpage: function fullscreen() { var vid = document.getElementById("vid"); vid.style.position = "absolute"; vid.style.width = "100vw"; vid.style.height = "100vh"; vid.style.top = "0px"; vid.style.left = "0px"; document.getElementById(

Youtube REST API v3 - include statistics for video in search query result

荒凉一梦 提交于 2019-12-21 07:34:57
问题 I want to perform search queries using Youtube API v3. What I need is to retrieve video ids and statistics for each video. From the docs I can see that statistics is not returned for video items. If I try to ask for statistics using this query: https://www.googleapis.com/youtube/v3/search?type=video&part=snippet,statistics&q=kittens&key={MY_KEY} I receive an error: { "error": { "errors": [ { "domain": "youtube.part", "reason": "unknownPart", "message": "statistics", "locationType": "parameter

Replace an image with a youtube video

坚强是说给别人听的谎言 提交于 2019-12-21 05:30:11
问题 I have an image, and I would like to make the image link to an embedded YouTube video, such that if the user clicks on the image, it starts playing in the place where the picture used to be. Any thoughts on how I can accomplish this? Thank you, David 回答1: Place the embedded video in a div that is invisible: <div id="video" style="display: none;"> embedded video code here </div> Then give the img an id too: <img id="videopic" src="videopic.jpg" alt="Video Picture" /> Then, put a link round the

How can I remove the youtube branding completely from embedded video?

佐手、 提交于 2019-12-21 05:15:30
问题 I have tried to embed videos without youtube branding because it sends my traffic to youtube. I set modestbranding=1 and showinfo=0 but I still see a youtube branding in bottom of the player when I hover the cursor on player. When I got this I thought, I can't remove that from embedded video but when I came through a site yesterday, I found that their embedding doesn't have youtube branding. They removed that entirely. If you want that site link here it is http://vitaminl.tv/video/1072?ref

Fetching videos list from a Youtube playlist through RSS doesn't return more than 15 results

久未见 提交于 2019-12-21 04:51:26
问题 I'm using the following API to fetch a list of the videos in a playlist: https://www.youtube.com/feeds/videos.xml?playlist_id= The problem is if the playlist has more than 15 videos, the response is only the first 15. I thought there is a paging algorithm, but there is no link rel="next" in the response and appending ?page to the end of the link returns 404. Thanks 回答1: First, the YouTube Data API v2 call is already deprecated and encourage you to use the YouTube Data API (v3). I found in