Web Development with jQuery®

(Elliott) #1

(^460) ❘ CHAPTER 21 WORKING WITH HTML5 AUDIO AND VIDEO



MediaElement Plugin












CSS is referenced, but the rules do not infl uence the presentation of this example. The following
JavaScript (in Example 21-1.js) is included for confi guring and activating the MediaElement plugin:
$(document).ready(
function()
{
$('video,audio').mediaplayerelement(
{
clickToPlayPause: true,
features: ['playpause', 'current', 'progress', 'volume'],
poster: 'images/FilmMarker.jpg'
}
);
}
);
The code results are shown in Figure 21-1.

FIGURE 21-1


http://www.it-ebooks.info

Free download pdf