Ad goes here

Sunday, 31 July 2016

A perfect and easy to use Video/ Audio player

Easy to use html5 video player
The Video Player which we looks for perfect one and most of the time we found its either premium version or support particular formats. Have you heard about Media Elements? Yes the Media Elements player support all most all video and music formats including YouTube video.

The MediaElement player is a complete HTML and CSS audio/ video player which works with jQuery and MediaElements.js. The best part of this player is - its use same HTML and CSS for Flash UI fallback.

How to implement?
You can make your player within few minutes, just including jQuery and MediaElements.js and the video and audio tag converted to a beautiful player. Click on below button to download the sample player or see details in code below.

Download Form Validation Sample Download Form Validation Demo

<!DOCTYPE html>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <title>HTML5 MediaElement</title> 
 <link rel="stylesheet" href="" />
 <script src=''></script>
 <script src=""></script>  
<video width="640" height="360" id="player2" poster="" controls="controls" preload="none">
 <!-- MP4 source must come first for iOS -->
 <source type="video/mp4" src="" />
 <!-- WebM for Firefox 4 and Opera -->
 <source type="video/webm" src="" />
 <!-- OGG for Firefox 3 -->
 <source type="video/ogg" src="" />
 <!-- Fallback flash player for no-HTML5 browsers with JavaScript turned off -->
 <object width="640" height="360" type="application/x-shockwave-flash" data="">   
  <param name="movie" value="" /> 
  <param name="flashvars" value="controls=true&amp;file=" />   
  <!-- Image fall back for non-HTML5 browser with JavaScript turned off and no Flash player installed -->
  <img src="" width="640" height="360" alt="Here we are" 
   title="No video playback capabilities" />

 //mode: 'shim',
 success: function(player, node) {
  $('#' + + '-mode').html('mode: ' + player.pluginType);


Skinning: You can easily change the above player by simply modifying the stylesheet and even you can change graphic elements based on your project requirement.

For more information you can visit official website -

Credit: John Dyer
License: MIT

No comments:

Post a Comment