Skip to content
A jQuery plugin for turning an image into a YouTube video when you click on it
JavaScript ActionScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
js
.gitignore
README.markdown
index.html

README.markdown

img2youtube

Get full control over the first image on the video.

This jQuery plugin turns an image into a YouTube video when you click on it. It uses the YouTube Player API.</p> <p>Features:</p> <ul> <li>Progressive enhancement. If JavaScript isn&#39;t enabled the image will link to the YouTube page.</li> <li>YouTube iFrame works with HTML5 and flash.</li> <li>Auto-play video on click</li> </ul> <p>Known issues:</p> <ul> <li>Google API is currently an experimental feature, which means that it might change unexpectedly.</li> <li>A JavaScript warning error is logged to the console. This does not affect any functionality. The error is: &quot;Unsafe JavaScript attempt to access frame with URL [url] from frame with URL [url]. Domains, protocols and ports must match.&quot;</li> </ul> <p>You can read the YouTube <iframe> Player API reference here: <a href="http://code.google.com/apis/youtube/iframe_api_reference.html">http://code.google.com/apis/youtube/iframe_api_reference.html</a></p>

Something went wrong with that request. Please try again.