eyevinn-channel-engine 4.3.11 → 4.3.13

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/README.md CHANGED
@@ -18,6 +18,12 @@
18
18
  [![made with hearth by Eyevinn](https://img.shields.io/badge/made%20with%20%E2%99%A5%20by-Eyevinn-59cbe8.svg?style=flat-square)](https://github.com/eyevinn)
19
19
  [![Slack](http://slack.streamingtech.se/badge.svg)](http://slack.streamingtech.se)
20
20
 
21
+
22
+ </div>
23
+ <div align="center">
24
+
25
+ [![Badge OSC](https://img.shields.io/badge/Evaluate-24243B?style=for-the-badge&logo=data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTIiIGN5PSIxMiIgcj0iMTIiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yODIxXzMxNjcyKSIvPgo8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSI3IiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjIiLz4KPGRlZnM%2BCjxsaW5lYXJHcmFkaWVudCBpZD0icGFpbnQwX2xpbmVhcl8yODIxXzMxNjcyIiB4MT0iMTIiIHkxPSIwIiB4Mj0iMTIiIHkyPSIyNCIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjQzE4M0ZGIi8%2BCjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzREQzlGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM%2BCjwvc3ZnPgo%3D)](https://app.osaas.io/browse/channel-engine)
26
+
21
27
  </div>
22
28
 
23
29
  Eyevinn Channel Engine is a core component library for creating FAST channels based on VOD2Live technology. Combine this vod2live technology component with your business and scheduling logic to build your very own and unique FAST channel engine.
@@ -416,15 +416,12 @@ var Session = /** @class */ (function () {
416
416
  };
417
417
  Session.prototype.stopPlayheadAsync = function () {
418
418
  return __awaiter(this, void 0, void 0, function () {
419
- var isLeader;
420
419
  return __generator(this, function (_a) {
421
420
  switch (_a.label) {
422
- case 0: return [4 /*yield*/, this._sessionStateStore.isLeader(this._instanceId)];
423
- case 1:
424
- isLeader = _a.sent();
421
+ case 0:
425
422
  debug("[".concat(this._sessionId, "]: Stopping playhead consumer"));
426
- return [4 /*yield*/, this._playheadState.set("state", PlayheadState.STOPPED, isLeader)];
427
- case 2:
423
+ return [4 /*yield*/, this._playheadState.setState(PlayheadState.STOPPED)];
424
+ case 1:
428
425
  _a.sent();
429
426
  return [2 /*return*/];
430
427
  }
@@ -481,14 +478,15 @@ var Session = /** @class */ (function () {
481
478
  return [4 /*yield*/, this._playheadStateStore.reset(id)];
482
479
  case 2:
483
480
  _a.sent();
484
- _a.label = 3;
481
+ return [3 /*break*/, 6];
485
482
  case 3: return [4 /*yield*/, this._sessionStateStore.resetAll()];
486
483
  case 4:
487
484
  _a.sent();
488
485
  return [4 /*yield*/, this._playheadStateStore.resetAll()];
489
486
  case 5:
490
487
  _a.sent();
491
- return [2 /*return*/];
488
+ _a.label = 6;
489
+ case 6: return [2 /*return*/];
492
490
  }
493
491
  });
494
492
  });
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eyevinn-channel-engine",
3
- "version": "4.3.11",
3
+ "version": "4.3.13",
4
4
  "description": "OTT TV Channel Engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -30,8 +30,8 @@
30
30
  "dependencies": {
31
31
  "@eyevinn/hls-repeat": "^0.2.0",
32
32
  "@eyevinn/hls-truncate": "^0.3.0",
33
- "@eyevinn/hls-vodtolive": "^4.1.1",
34
- "@eyevinn/m3u8": "^0.5.3",
33
+ "@eyevinn/hls-vodtolive": "^4.1.3",
34
+ "@eyevinn/m3u8": "^0.5.8",
35
35
  "abort-controller": "^3.0.0",
36
36
  "debug": "^3.2.7",
37
37
  "ioredis": "^5.3.2",
package/engine/session.js CHANGED
@@ -312,9 +312,8 @@ class Session {
312
312
  }
313
313
 
314
314
  async stopPlayheadAsync() {
315
- const isLeader = await this._sessionStateStore.isLeader(this._instanceId);
316
315
  debug(`[${this._sessionId}]: Stopping playhead consumer`);
317
- await this._playheadState.set("state", PlayheadState.STOPPED, isLeader);
316
+ await this._playheadState.setState(PlayheadState.STOPPED);
318
317
  }
319
318
 
320
319
  async getStatusAsync() {
@@ -349,9 +348,10 @@ class Session {
349
348
  if (id) {
350
349
  await this._sessionStateStore.reset(id);
351
350
  await this._playheadStateStore.reset(id);
351
+ } else {
352
+ await this._sessionStateStore.resetAll();
353
+ await this._playheadStateStore.resetAll();
352
354
  }
353
- await this._sessionStateStore.resetAll();
354
- await this._playheadStateStore.resetAll();
355
355
  }
356
356
 
357
357
  async getSessionState() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eyevinn-channel-engine",
3
- "version": "4.3.11",
3
+ "version": "4.3.13",
4
4
  "description": "OTT TV Channel Engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -30,8 +30,8 @@
30
30
  "dependencies": {
31
31
  "@eyevinn/hls-repeat": "^0.2.0",
32
32
  "@eyevinn/hls-truncate": "^0.3.0",
33
- "@eyevinn/hls-vodtolive": "^4.1.1",
34
- "@eyevinn/m3u8": "^0.5.3",
33
+ "@eyevinn/hls-vodtolive": "^4.1.3",
34
+ "@eyevinn/m3u8": "^0.5.8",
35
35
  "abort-controller": "^3.0.0",
36
36
  "debug": "^3.2.7",
37
37
  "ioredis": "^5.3.2",