eyevinn-channel-engine 3.1.4 → 3.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/engine/session.js +7 -8
- package/package.json +1 -1
package/engine/session.js
CHANGED
|
@@ -415,7 +415,7 @@ class Session {
|
|
|
415
415
|
await this._sessionState.clearCurrentVodCache(); // force reading up from shared store
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
|
|
418
|
+
|
|
419
419
|
const currentVod = await this._sessionState.getCurrentVod();
|
|
420
420
|
if (currentVod) {
|
|
421
421
|
try {
|
|
@@ -739,11 +739,10 @@ class Session {
|
|
|
739
739
|
length = currentVod.getLiveMediaSequencesCount();
|
|
740
740
|
lastDiscontinuity = currentVod.getLastDiscontinuity();
|
|
741
741
|
}
|
|
742
|
-
await this._sessionState.set("state", SessionState.VOD_NEXT_INITIATING);
|
|
743
|
-
await this._sessionState.setCurrentVod(slateVod);
|
|
744
|
-
|
|
745
742
|
await this._sessionState.set("vodMediaSeqVideo", 0);
|
|
746
743
|
await this._sessionState.set("vodMediaSeqAudio", 0);
|
|
744
|
+
await this._sessionState.set("state", SessionState.VOD_NEXT_INITIATING);
|
|
745
|
+
await this._sessionState.setCurrentVod(slateVod);
|
|
747
746
|
await this._sessionState.set("mediaSeq", sessionState.mediaSeq + length);
|
|
748
747
|
await this._sessionState.set("discSeq", sessionState.discSeq + lastDiscontinuity);
|
|
749
748
|
await this._sessionState.set("slateCount", sessionState.slateCount + 1);
|
|
@@ -827,6 +826,10 @@ class Session {
|
|
|
827
826
|
debug(`[${this._sessionId}]: ${currentVod.getDeltaTimes()}`);
|
|
828
827
|
debug(`[${this._sessionId}]: ${currentVod.getPlayheadPositions()}`);
|
|
829
828
|
//debug(newVod);
|
|
829
|
+
sessionState.mediaSeq = await this._sessionState.set("mediaSeq", 0);
|
|
830
|
+
sessionState.discSeq = await this._sessionState.set("discSeq", 0);
|
|
831
|
+
sessionState.vodMediaSeqVideo = await this._sessionState.set("vodMediaSeqVideo", 0);
|
|
832
|
+
sessionState.vodMediaSeqAudio = await this._sessionState.set("vodMediaSeqAudio", 0);
|
|
830
833
|
await this._playheadState.set("playheadRef", Date.now());
|
|
831
834
|
this.produceEvent({
|
|
832
835
|
type: 'NOW_PLAYING',
|
|
@@ -837,10 +840,6 @@ class Session {
|
|
|
837
840
|
});
|
|
838
841
|
sessionState.state = await this._sessionState.set("state", SessionState.VOD_PLAYING);
|
|
839
842
|
sessionState.currentVod = await this._sessionState.setCurrentVod(currentVod, { ttl: currentVod.getDuration() * 1000 });
|
|
840
|
-
sessionState.mediaSeq = await this._sessionState.set("mediaSeq", 0);
|
|
841
|
-
sessionState.discSeq = await this._sessionState.set("discSeq", 0);
|
|
842
|
-
sessionState.vodMediaSeqVideo = await this._sessionState.set("vodMediaSeqVideo", 0);
|
|
843
|
-
sessionState.vodMediaSeqAudio = await this._sessionState.set("vodMediaSeqAudio", 0);
|
|
844
843
|
await this._sessionState.remove("nextVod");
|
|
845
844
|
return;
|
|
846
845
|
} else {
|