Replace url from youtube to embed code – Error: Permission denied to access property ‘toString’

The error can either be fixed by Adobe’s Flash Player team, or by the Google engineers – you should just ignore it for now. It’s connected to Flash Player security settings and the SWF file embedded into the Youtube page. The problem has been reported in the past by IBM, and there is a Mozilla … Read more

FF3/Windows CSS z-index problem with YouTube player

Try to add the wmode parameter to be opaque like this: (Note that it’s included in both a <param> tag and a wmode attribute on the <embed> tag.) <object width=”425″ height=”344″> <param name=”movie” value=”http://www.youtube.com/v/Wj_JNwNbETA&hl=en&fs=1″> <param name=”type” value=”application/x-shockwave-flash”> <param name=”allowfullscreen” value=”true”> <param name=”allowscriptaccess” value=”always”> <param name=”wmode” value=”opaque” /> <embed width=”425″ height=”344″ src=”http://www.youtube.com/v/Wj_JNwNbETA&hl=en&fs=1″ type=”application/x-shockwave-flash” allowfullscreen=’true’ allowscriptaccess=”always” wmode=”opaque” … Read more

YouTube embedded video: set different thumbnail

There’s a nice workaround for this in the sitepoint forums: <div onclick=”this.nextElementSibling.style.display=’block’; this.style.display=’none'”> <img src=”https://stackoverflow.com/questions/7199624/my_thumbnail.png” style=”cursor:pointer” /> </div> <div style=”display:none”> <!– Embed code here –> </div> Note: To prevent having to click twice to make the video play, use autoplay=1 in the video embed code. It will start playing when the second div is displayed.

Get title from YouTube videos

Easiest way to obtain information about a youtube video afaik is to parse the string retrieved from: http://youtube.com/get_video_info?video_id=XXXXXXXX Using something like PHP’s parse_str(), you can obtain a nice array of nearly anything about the video: $content = file_get_contents(“http://youtube.com/get_video_info?video_id=”.$id); parse_str($content, $ytarr); echo $ytarr[‘title’]; That will print the title for the video using $id as the video’s … Read more

How can I get the actual video URL of a YouTube live stream?

You need to get the HLS m3u8 playlist files from the video’s manifest. There are ways to do this by hand, but for simplicity I’ll be using the youtube-dl tool to get this information. I’ll be using this live stream as an example: https://www.youtube.com/watch?v=_Gtc-GtLlTk First, get the formats of the video: ➜ ~ youtube-dl –list-formats … Read more

What is blob in the ?

That is a youtube video with shaka player which plays DASH content without browser plugins using Media Source Extensions. The blob url is generated by createObjectURL. for example: var video = document.querySelector(‘video’); var assetURL = ‘frag_bunny.mp4’; // Need to be specific for Blink regarding codecs // ./mp4info frag_bunny.mp4 | grep Codec var mimeCodec=”video/mp4; codecs=”avc1.42E01E, mp4a.40.2″”; … Read more

YouTube Video not playing in WebView – Android

Add these lines before loading HTML content to your WebView. wv.setWebChromeClient(new WebChromeClient() { }); From the documentation: In order to support inline HTML5 video in your application, you need to have hardware acceleration turned on, and set a WebChromeClient. For full screen support, implementations of onShowCustomView(View, WebChromeClient.CustomViewCallback) and onHideCustomView() are required, getVideoLoadingProgressView() is optional.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)