eyevinn-channel-engine 4.0.13 → 4.0.16

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.
@@ -1040,7 +1040,7 @@ var Session = /** @class */ (function () {
1040
1040
  case 20:
1041
1041
  audioPosition = (_o.sent()) * 1000;
1042
1042
  posDiff = position - audioPosition;
1043
- if (posDiff < 0) {
1043
+ if (posDiff <= 0) {
1044
1044
  return [3 /*break*/, 22];
1045
1045
  }
1046
1046
  if (posDiff > thresh) {
@@ -226,7 +226,7 @@ var SharedSessionState = /** @class */ (function () {
226
226
  return [4 /*yield*/, this.store.isLeader(this.instanceId)];
227
227
  case 2:
228
228
  if (!_a.sent()) return [3 /*break*/, 4];
229
- valueToIncrement = inc || 1;
229
+ valueToIncrement = inc === 0 ? 0 : inc ? inc : 1;
230
230
  debug("[".concat(this.sessionId, "]: I am incrementing key ").concat(key, " with ").concat(valueToIncrement));
231
231
  value += valueToIncrement;
232
232
  return [4 /*yield*/, this.store.set(this.sessionId, key, value)];
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eyevinn-channel-engine",
3
- "version": "4.0.13",
3
+ "version": "4.0.16",
4
4
  "description": "OTT TV Channel Engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "dependencies": {
27
27
  "@eyevinn/hls-repeat": "^0.2.0",
28
28
  "@eyevinn/hls-truncate": "^0.2.0",
29
- "@eyevinn/hls-vodtolive": "^2.3.3",
29
+ "@eyevinn/hls-vodtolive": "^2.3.5",
30
30
  "@eyevinn/m3u8": "^0.5.3",
31
31
  "abort-controller": "^3.0.0",
32
32
  "debug": "^3.2.7",
package/engine/session.js CHANGED
@@ -738,7 +738,7 @@ class Session {
738
738
  do {
739
739
  const audioPosition = (await this._getAudioPlayheadPosition(sessionState.vodMediaSeqAudio + index)) * 1000;
740
740
  posDiff = position - audioPosition;
741
- if (posDiff < 0) {
741
+ if (posDiff <= 0) {
742
742
  break;
743
743
  }
744
744
  if (posDiff > thresh) {
@@ -116,7 +116,7 @@ class SharedSessionState {
116
116
  async increment(key, inc) {
117
117
  let value = await this.get(key);
118
118
  if (await this.store.isLeader(this.instanceId)) {
119
- let valueToIncrement = inc || 1;
119
+ let valueToIncrement = inc === 0 ? 0 : inc ? inc : 1;
120
120
  debug(`[${this.sessionId}]: I am incrementing key ${key} with ${valueToIncrement}`);
121
121
  value += valueToIncrement;
122
122
  return await this.store.set(this.sessionId, key, value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eyevinn-channel-engine",
3
- "version": "4.0.13",
3
+ "version": "4.0.16",
4
4
  "description": "OTT TV Channel Engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "dependencies": {
27
27
  "@eyevinn/hls-repeat": "^0.2.0",
28
28
  "@eyevinn/hls-truncate": "^0.2.0",
29
- "@eyevinn/hls-vodtolive": "^2.3.3",
29
+ "@eyevinn/hls-vodtolive": "^2.3.5",
30
30
  "@eyevinn/m3u8": "^0.5.3",
31
31
  "abort-controller": "^3.0.0",
32
32
  "debug": "^3.2.7",