youtube

Thumbnails from the Vimeo website harder than YouTube

落爺英雄遲暮 提交于 2019-12-23 20:09:25
问题 Merged with Get img thumbnails from Vimeo?. Our website lets people add videos by submitting a URL - usually one from YouTube or Vimeo. I'd like to show thumbnails, when giving people a list of videos. YouTube make this easy for me - just slap "1.jpg" on the end of the URL, and you've got your image. Vimeo seem to want me to make a HTTP request, and extract the thumbnail URL from the XML they return - what? Who's got time for that?!!! Plus, I'd have to store these URLs too, I can't get them

Youtube Api playVideo method doesn't work on some mobile devices

半城伤御伤魂 提交于 2019-12-23 20:03:24
问题 I am trying to create a website for mobile where after clicking on an image a youtube video to play. I have tested on several Android mobile phones/versions and on some doesn't behaves as intended. What I mean is it stops at buffering and never reaches to play the video. Another thing that I noticed is that the player works after the user triggers the video to play and not programatically. More detailed if I directly show the youtube player, the user click to play video and afterward click a

“Movie Format Not Supported” on iPhone with YouTube player in a WebView

烂漫一生 提交于 2019-12-23 20:01:02
问题 I'm using a UIWebView on iPhone to play YouTube videos. This is working fine most of the time, but not all. Under some circumstances, apparently related to network connection issues, the error "This movie format is not supported." is shown. This same error can be seen in both Safari and the YouTube player under the same circumstances. Unfortunately it has been seen by Apple during the AppStore testing so they've rejected the app. Can anyone suggest methods for detecting and handling the error

Refused to frame 'https://www.youtube.com/embed/xxxxx because it violates Content Security Policy directive

三世轮回 提交于 2019-12-23 19:24:23
问题 I am trying to embed a youtube video in my page and see an error like this in the console: Refused to frame 'https://www.youtube.com/embed/<~videoId~>?showinfo=0' because it violates the following Content Security Policy directive: "default-src 'self'". Note that 'frame-src' was not explicitly set, so 'default-src' is used as a fallback. This seems clear enough, so after a bit of reading I found two ways of setting an appropriate content security policy. by setting a response header (which I

How do I dynamically add &autoplay=1 to youtube embed codes?

我怕爱的太早我们不能终老 提交于 2019-12-23 18:32:25
问题 This is an examples of the youtube embed code on my site: <object width="525" height="320"><param name="wmode" value="opaque"> <param name="movie" value="http://www.youtube.com/v/yciTqWafKPU?version=3"> <param name="allowFullScreen" value="true"> <param name="allowscriptaccess" value="always"> <embed src="http://www.youtube.com/v/yciTqWafKPU?version=3" type="application/x-shockwave-flash" width="525" height="320" allowscriptaccess="always" allowfullscreen="true" wmode="opaque"> </object> I

Downloading flv from youtube using curlpp on top of curl - video not playing

孤者浪人 提交于 2019-12-23 17:37:13
问题 I"m using curlpp on to of curl lib in order to download videos from youtube. I have managed to download the flv but unable to open it using all sorts of video players. I used another youtube video downloader and download the exactly same video with the exactly same quality, I've noticed the requests are the same and also the file size is almost identical - here I think is the problem, For example: MyVideo.flv - 4.55MB WorkingVideo.flv - 4.53MB Here is the code: // Callback Function size_t

How to mute an iframe content?

柔情痞子 提交于 2019-12-23 17:26:44
问题 I have a 3rd party iframe containing videos from youtube, vimeo ,... Is there a generic way to mute the iframe content independently from the video/audio source ? 回答1: Step 1. First you need to access the iframe. var iframe = document.getElementById('iframeId'); var innerDoc = iframe.contentDocument || iframe.contentWindow.document; Step2. Once you get the inner document reference, you can access its inside DOM elements. Suppose your video/audio element id is mediaElem then. var MediaSource =

PHP extract youtube video IDs from array of iframe/object embeds?

梦想的初衷 提交于 2019-12-23 17:18:47
问题 I have an array of youtube iframes/objects like so: [0] => <iframe width="600" height="338" src="http://www.youtube.com/embed/szL_PVuzWp0?fs=1&feature=oembed" frameborder="0" allowfullscreen></iframe> [1] => <object width="600" height="338"><param name="movie" value="http://www.youtube.com/v/jm1S43a-e3Y?version=3&feature=oembed"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/jm1S43a-e3Y

Youtube API: Comment Insert 403 forbidden insufficient permissions

情到浓时终转凉″ 提交于 2019-12-23 17:18:05
问题 I'm using the API explorer at the bottom of https://developers.google.com/youtube/v3/docs/commentThreads/insert to test this call. I am requesting the scope https://www.googleapis.com/auth/youtube.force-ssl. Appreciate any help! REQUEST: POST https://www.googleapis.com/youtube/v3/commentThreads?part=id%2Csnippet&fields=id&key={YOUR_API_KEY} { "snippet": { "topLevelComment": { "snippet": { "textOriginal": "comment from gdev" } }, "videoId": "B5BypNLbBgQ", "channelId": "UCNqqFgLtbSjc9Er7XFv4wbA

wmode=transparent for Youtube video Iframe not working in IE with bootstrap modal

冷暖自知 提交于 2019-12-23 16:10:45
问题 I have a web app in which I am embedding Youtube videos using the iframe tag. I am also using bootstrap modal. So the issue arises in IE when the bootstrap modal fails to overlap the youtube video. Now i googled for this and I found a lot of answers saying that adding wmode=transparent should fix the issue. Well, It did not for me. Since I couldnt figure out a way for setting up a jsfiddle, I went to the bootstrap modal demo site and edited their code and added a youtube video. Please refer