eyevinn-channel-engine 3.2.0 → 3.2.1

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 CHANGED
@@ -582,6 +582,9 @@ class Session {
582
582
  // As a FOLLOWER, we might need to read up from shared store...
583
583
  if (playheadState.vodMediaSeqVideo < 2 || playheadState.vodMediaSeqVideo < this.prevVodMediaSeq.video) {
584
584
  debug(`[${this._sessionId}]: current[${playheadState.vodMediaSeqVideo}]_prev[${this.prevVodMediaSeq.video}]`);
585
+ if (playheadState.vodMediaSeqVideo < this.prevVodMediaSeq.video) {
586
+ this.alreadyCleredVodCache = false;
587
+ }
585
588
  if (!isLeader && !this.alreadyClearedVodCache) {
586
589
  debug(`[${this._sessionId}]: Not a leader and have just set 'playheadState.vodMediaSeqVideo' to 0|1. Invalidate cache to ensure having the correct VOD.`);
587
590
  await this._sessionState.clearCurrentVodCache();
@@ -591,6 +594,8 @@ class Session {
591
594
  // Reset the value
592
595
  this.alreadyClearedVodCache = false;
593
596
  }
597
+ // Update Value for Previous Sequence
598
+ this.prevVodMediaSeq.video = playheadState.vodMediaSeqVideo;
594
599
 
595
600
  return m3u8;
596
601
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eyevinn-channel-engine",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "OTT TV Channel Engine",
5
5
  "main": "index.js",
6
6
  "scripts": {