eyevinn-channel-engine 2.23.2 → 2.23.3
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 +4 -4
- package/package.json +1 -1
package/engine/session.js
CHANGED
|
@@ -673,8 +673,8 @@ class Session {
|
|
|
673
673
|
}
|
|
674
674
|
}
|
|
675
675
|
case SessionState.VOD_PLAYING:
|
|
676
|
-
if (!isLeader && sessionState.vodMediaSeqVideo === 0) {
|
|
677
|
-
debug(`[${this._sessionId}]: First mediasequence in VOD and I am not the leader so invalidate current VOD cache and fetch the new one from the leader`);
|
|
676
|
+
if (!isLeader && (sessionState.vodMediaSeqVideo === 0 || sessionState.vodMediaSeqVideo === 1)) {
|
|
677
|
+
debug(`[${this._sessionId}]: First or second mediasequence in VOD and I am not the leader so invalidate current VOD cache and fetch the new one from the leader`);
|
|
678
678
|
await this._sessionState.clearCurrentVodCache();
|
|
679
679
|
currentVod = await this._sessionState.getCurrentVod();
|
|
680
680
|
}
|
|
@@ -684,8 +684,8 @@ class Session {
|
|
|
684
684
|
debug(`[${this._sessionId}]: state=VOD_NEXT_INITIATING (${sessionState.vodMediaSeqVideo}_${sessionState.vodMediaSeqAudio}, ${currentVod.getLiveMediaSequencesCount()})`);
|
|
685
685
|
if (!isLeader) {
|
|
686
686
|
debug(`[${this._sessionId}]: not the leader so just waiting for the VOD to be initiated`);
|
|
687
|
-
if (sessionState.vodMediaSeqVideo === 0) {
|
|
688
|
-
debug(`[${this._sessionId}]: First mediasequence in VOD and I am not the leader so invalidate current VOD cache and fetch the new one from the leader`);
|
|
687
|
+
if (sessionState.vodMediaSeqVideo === 0 || sessionState.vodMediaSeqVideo === 1) {
|
|
688
|
+
debug(`[${this._sessionId}]: First or second mediasequence in VOD and I am not the leader so invalidate current VOD cache and fetch the new one from the leader`);
|
|
689
689
|
await this._sessionState.clearCurrentVodCache();
|
|
690
690
|
}
|
|
691
691
|
}
|