Browse Source

Left-Right side in Session Player fixed

Evgeny Gagua 3 months ago
parent
commit
84fafad26c
  1. 45
      lib/javascript/jsapi_dynamic/argus_reports.js

45
lib/javascript/jsapi_dynamic/argus_reports.js

@ -1906,10 +1906,43 @@ class argusSessionPlayer{
};
};
};
//if( mSesPlay.rVideoJS_exists ){
// if( this.lVideoJS_playing )
// this.lVideoJS.currentTime( ( nt - this.Videos[this.lVideoJS_cid].sts ) / 1000 );
//};
if( mSesPlay.lVideoJS_exists ){
var tcid = -1;
for( var i=0; i < mSesPlay.Videos.length; i++ ){
if( mSesPlay.Videos[i].side == 'L' ){
if( ( nt >= mSesPlay.Videos[i].sts ) && ( nt <= ( mSesPlay.Videos[i].sts + 60000 )) ) {
tcid = i;
break;
}
}
};
//debugger;
if( tcid < 0 ){
this.lVideoJS_playing = false; // Shut video off
//var ns = {type: 'image/png', src: '/style/assets/no-signal_h.png' };
//this.rVideoJS.src( ns );
//this.src([]);
//this.rVideoJS.poster( '/style/assets/no-signal_h.png' );
//this.rVideoJS.posterImage.show();
this.lVideoJS_cid = -1;
} else {
if( /*this.rVideoJS_playing && */ ( tcid == this.lVideoJS_cid ) ) this.lVideoJS.currentTime( ( nt - this.Videos[this.lVideoJS_cid].sts ) / 1000 );
else {
// open other video
this.lVideoJS_cid = tcid;
this.lVideoJS_playing = true;
//alert( this.basePath + this.Videos[this.rVideoJS_cid].name );
var ns = {type: 'video/mp4', src: this.basePath + this.Videos[this.lVideoJS_cid].name };
this.lVideoJS.src( ns );
//this.rVideoJS.posterImage.hide();
this.lVideoJS.play();
//this.rVideoJS.currentTime( ( nt - this.Videos[this.rVideoJS_cid].sts ) / 1000 );
};
};
};
}
checkVideoTime(){
if( this.mMainVideo == 0 ){
@ -1976,7 +2009,7 @@ class argusSessionPlayer{
this.lVideoJS_cid = nid;
this.lVideoJS_playing = true;
//alert( this.basePath + this.Videos[this.rVideoJS_cid].name );
var ns = {type: 'video/mp4', src: this.basePath + this.Videos[this.rVideoJS_cid].name };
var ns = {type: 'video/mp4', src: this.basePath + this.Videos[this.lVideoJS_cid].name };
this.lVideoJS.src( ns );
this.nextTimestamp = 0.0;
this.lVideoJS.play();
@ -1996,7 +2029,7 @@ class argusSessionPlayer{
this.lVideoJS_cid = this.getNextVideo( side );
this.lVideoJS_playing = true;
//alert( this.basePath + this.Videos[this.rVideoJS_cid].name );
var ns = {type: 'video/mp4', src: this.basePath + this.Videos[this.rVideoJS_cid].name };
var ns = {type: 'video/mp4', src: this.basePath + this.Videos[this.lVideoJS_cid].name };
this.lVideoJS.src( ns );
this.nextTimestamp = 0.0;
this.lVideoJS.play();

Loading…
Cancel
Save