我一直在mediaelement.js的文档中搜索播放列表皮肤(或者至少有上一个和下一个按钮的皮肤),这样的东西存在吗?我在网上看到过有“上一步”和“下一步”按钮的例子。我的目标是像这样的东西。
发布于 2013-12-11 11:25:10
您可以通过hark.com扩展此插件
https://github.com/hark/mediaelement-plugins
示例:
上一步按钮:
(function($){
MediaElementPlayer.prototype.buildprevious = function(player, controls, layers, media){
var loop = $('<div class="mejs-button mejs-previous-button">' +
'</div>')
// append it to the toolbar
.appendTo(controls)
// add a click toggle event
.click(function(){
// window.open(player.options.logo.link, '_blank');
player.options.prevFunc.apply(this);
});
};
})(jQuery);
然后,您可以将其添加到mediaelement.js的选项中
prevFunc: function(){
// add previous functionality here
alert("Previous!");
},
https://stackoverflow.com/questions/15133270
复制