jQuery Plugin For Easy Youtube Video Embedding – EasyEmbed

You are currently viewing jQuery Plugin For Easy Youtube Video Embedding – EasyEmbed

Welcome books I am back with a metal block tutorials Windows tutorial I will be telling you that how to embed YouTube videos into your website using a jQuery plugin called as Easy Embed so easy embed allows you to embed your YouTube videos onto your website very easy it contains various methods properties that you can use to embed videos the demo of this application is given below you can check the demo and also all the source code of this application is also given in the description.

 

Demo of this Plugin

 

 

How to use it:

1. Add the jquery.easyembed.js script to the web page, after you’ve added jQuery library.

1 <script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
2 <script src="jquery.easyembed.js"></script>

 

2. Embed an Youtube video with a thumbnail fallback into your webpage using html5 data-* attributes.

 

3. You can also create an overlay for the video player.

 

4. All data-* attributes.

  • data-easy-embed: auto initialize the plugin.
  • data-id: specify the Youtube Video ID.
  • data-control: true or false. Show player controls
  • data-info: true or false. Show video title and player actions

 

Download Project

 

Source Code Example

 

Leave a Reply