Use playClicked instead of vjsPlay as it has additional functionality
parent
277f856452
commit
1658943097
|
@ -1075,7 +1075,7 @@ function initPage() {
|
|||
addVideoTimingTrack(vid, LabelFormat, eventData.MonitorName, eventData.Length, eventData.StartDateTime);
|
||||
//$j('.vjs-progress-control').append('<div id="alarmCues" class="alarmCues"></div>');//add a place for videojs only on first load
|
||||
vid.on('ended', vjsReplay);
|
||||
vid.on('play', vjsPlay);
|
||||
vid.on('play', playClicked);
|
||||
vid.on('pause', pauseClicked);
|
||||
vid.on('click', function(event) {
|
||||
handleClick(event);
|
||||
|
@ -1545,6 +1545,7 @@ function fullscreenClicked() {
|
|||
if (document.fullscreenElement) {
|
||||
closeFullscreen();
|
||||
} else {
|
||||
console.log(content);
|
||||
openFullscreen(content);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue