I wanted to add a extra button "HD" near caption inside html5 player. Added this piece of code inside mediaelementplayer.js file.
//HD button display starts
(function ($) {
$.extend(MediaElementPlayer.prototype, {
buildcontextmenu: function (player, controls, layers, media) {
// create HD button
$('<div class="mejs-button mejs-hd-button"><span>HD<span/></div>')
.appendTo(controls);
}
});
})(mejs.$);
//HD button display stops
can anyone help to solve this issue? As of now mediaelementplayer.js by johndyer doesnot support HD on/off button. Reference http://mediaelementjs.com/ by johndyer