spacing
This commit is contained in:
parent
c6311b7079
commit
e663397816
|
@ -1,7 +1,7 @@
|
||||||
var vid = null;
|
var vid = null;
|
||||||
|
|
||||||
|
// Function called when video.js hits the end of the video
|
||||||
function vjsReplay() {
|
function vjsReplay() {
|
||||||
var endTime = (Date.parse(eventData.EndTime)).getTime();
|
|
||||||
switch ( replayMode.value ) {
|
switch ( replayMode.value ) {
|
||||||
case 'none':
|
case 'none':
|
||||||
break;
|
break;
|
||||||
|
@ -13,6 +13,7 @@ function vjsReplay() {
|
||||||
var overLaid = $j("#videoobj");
|
var overLaid = $j("#videoobj");
|
||||||
overLaid.append('<p class="vjsMessage" style="height: '+overLaid.height()+'px; line-height: '+overLaid.height()+'px;">No more events</p>');
|
overLaid.append('<p class="vjsMessage" style="height: '+overLaid.height()+'px; line-height: '+overLaid.height()+'px;">No more events</p>');
|
||||||
} else {
|
} else {
|
||||||
|
var endTime = (Date.parse(eventData.EndTime)).getTime();
|
||||||
var nextStartTime = nextEventStartTime.getTime(); //nextEventStartTime.getTime() is a mootools workaround, highjacks Date.parse
|
var nextStartTime = nextEventStartTime.getTime(); //nextEventStartTime.getTime() is a mootools workaround, highjacks Date.parse
|
||||||
if ( nextStartTime <= endTime ) {
|
if ( nextStartTime <= endTime ) {
|
||||||
streamNext(true);
|
streamNext(true);
|
||||||
|
@ -22,7 +23,7 @@ function vjsReplay() {
|
||||||
vid.pause();
|
vid.pause();
|
||||||
overLaid.append('<p class="vjsMessage" style="height: '+overLaid.height()+'px; line-height: '+overLaid.height()+'px;"></p>');
|
overLaid.append('<p class="vjsMessage" style="height: '+overLaid.height()+'px; line-height: '+overLaid.height()+'px;"></p>');
|
||||||
var gapDuration = (new Date().getTime()) + (nextStartTime - endTime);
|
var gapDuration = (new Date().getTime()) + (nextStartTime - endTime);
|
||||||
var messageP = $j(".vjsMessage");
|
var messageP = $j('.vjsMessage');
|
||||||
var x = setInterval(function() {
|
var x = setInterval(function() {
|
||||||
var now = new Date().getTime();
|
var now = new Date().getTime();
|
||||||
var remainder = new Date(Math.round(gapDuration - now)).toISOString().substr(11, 8);
|
var remainder = new Date(Math.round(gapDuration - now)).toISOString().substr(11, 8);
|
||||||
|
@ -574,6 +575,7 @@ function getEventResponse( respObj, respText ) {
|
||||||
//eventImg.setStyles( { 'width': eventData.width, 'height': eventData.height } );
|
//eventImg.setStyles( { 'width': eventData.width, 'height': eventData.height } );
|
||||||
if ( vid && CurEventDefVideoPath ) {
|
if ( vid && CurEventDefVideoPath ) {
|
||||||
vid.src({type: 'video/mp4', src: CurEventDefVideoPath}); //Currently mp4 is all we use
|
vid.src({type: 'video/mp4', src: CurEventDefVideoPath}); //Currently mp4 is all we use
|
||||||
|
console.log("getEventResponse");
|
||||||
initialAlarmCues(eventData.Id);//ajax and render, new event
|
initialAlarmCues(eventData.Id);//ajax and render, new event
|
||||||
addVideoTimingTrack(vid, LabelFormat, eventData.MonitorName, eventData.Length, eventData.StartTime);
|
addVideoTimingTrack(vid, LabelFormat, eventData.MonitorName, eventData.Length, eventData.StartTime);
|
||||||
CurEventDefVideoPath = null;
|
CurEventDefVideoPath = null;
|
||||||
|
|
Loading…
Reference in New Issue