Title for loop button on videoplayer
This commit is contained in:
@@ -80,6 +80,7 @@ script(type="text/javascript").
|
|||||||
|
|
||||||
newButton.className = 'vjs-control vjs-button ' + data.class;
|
newButton.className = 'vjs-control vjs-button ' + data.class;
|
||||||
buttonContent.className = 'vjs-icon-placeholder';
|
buttonContent.className = 'vjs-icon-placeholder';
|
||||||
|
newButton.setAttribute('title', data.title);
|
||||||
|
|
||||||
newButton.appendChild(buttonContent);
|
newButton.appendChild(buttonContent);
|
||||||
controlBar = document.getElementsByClassName('vjs-control-bar')[0];
|
controlBar = document.getElementsByClassName('vjs-control-bar')[0];
|
||||||
@@ -92,7 +93,8 @@ script(type="text/javascript").
|
|||||||
var videoPlayerLoopButton = addVideoPlayerButton({
|
var videoPlayerLoopButton = addVideoPlayerButton({
|
||||||
player: videoPlayer,
|
player: videoPlayer,
|
||||||
class: 'vjs-loop-button',
|
class: 'vjs-loop-button',
|
||||||
icon: "pi-replay"
|
icon: 'pi-replay',
|
||||||
|
title: 'Loop'
|
||||||
});
|
});
|
||||||
|
|
||||||
videoPlayerLoopButton.onclick = function() {
|
videoPlayerLoopButton.onclick = function() {
|
||||||
|
Reference in New Issue
Block a user