Embeds youtube and vimeo videos responsive friendly. 产品特点 google analytics events and oEmbed嵌入 compatibility.
Loads embeded player after user interaction with the power of jQuery. Won't load the preview only if in viewport to
save bandwith.
Features
- Responsive player preview
- Lazy loads the preview player with high quality preview image if available.
- Loads the real embeded player after user interaction
- Tracks clicks with Google Analytics (Universal) and Piwik events
- Keeps your content clean by using just link to youtube url
HTML Embed
Use this in your article while the wysiwyg editor is set to HTML mode:
<a class="embedvideo" href="http://www.youtube.com/watch?v=TJHX52TXgm4">My Title</a>
- Install plugin
- Activate it
player size
Both the preview image and the embedded player iframe are automatically resized.
specify a start time
It is also possible to link to a specific start time for youtube videos. This script converts links like
<a class="embedvideo" href="http://www.youtube.com/watch?v=TJHX52TXgm4&t=1m20s">My Title</a>
to the appropriate time format and starts the video at that position.
Google Analytics
Events are being tracked automatically as "vimeo" and "youtube" with the video title as label.
荣誉榜
Player icon by Font Awesome:
http://fortawesome.github.com/Font-Awesome/#icon/icon-play-circle