1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 10:19:24 +02:00
Oinktube/plugin/PlayerSkins/shareButton.js
2020-12-17 08:46:21 -03:00

18 lines
No EOL
648 B
JavaScript

var Button = videojs.getComponent('Button');
var socialButton = videojs.extend(Button, {
//constructor: function(player, options) {
constructor: function () {
Button.apply(this, arguments);
this.addClass('social-button');
this.controlText("social");
setTimeout(function(){avideoTooltip(".social-button","Share");},1000);
},
handleClick: function () {
console.log('socialButton clicked');
tooglePlayersocial();
}
});
videojs.registerComponent('socialButton', socialButton);
player.getChild('controlBar').addChild('socialButton', {}, getPlayerButtonIndex('fullscreenToggle') - 1);