mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 10:19:24 +02:00
18 lines
No EOL
648 B
JavaScript
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); |