/* * This script is a very simple utility to add predefined control-markup for rapid/quick start development with jme. * Feel free to extend and change this markup for your needs. */ (function($){ var playerControls = '
' ; var fullscreenBtn = ' '; $.fn.jmeEmbedControls = function(o){ return this //append standard controls .append(playerControls) //add extra video controls .each(function(){ //media-state makes only sense with video not audio var hasVideo = $('video', this).after(''); //include fullscreenn button only if plugin is included and we have a video-element if( $.fn.enterFullWindow && hasVideo[0] ) { $('div.media-controls', this).append(fullscreenBtn); } }) //register controls with jmeConttrol .jmeControl(o) ; }; })(jQuery);