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 +6 -0
- package/dist/engine/session.js +6 -8
- package/dist/package.json +3 -3
- package/engine/session.js +4 -4
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -18,6 +18,12 @@
|
|
|
18
18
|
[](https://github.com/eyevinn)
|
|
19
19
|
[](http://slack.streamingtech.se)
|
|
20
20
|
|
|
21
|
+
|
|
22
|
+
</div>
|
|
23
|
+
<div align="center">
|
|
24
|
+
|
|
25
|
+
[](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.
|
package/dist/engine/session.js
CHANGED
|
@@ -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:
|
|
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.
|
|
427
|
-
case
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
34
|
-
"@eyevinn/m3u8": "^0.5.
|
|
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.
|
|
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.
|
|
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.
|
|
34
|
-
"@eyevinn/m3u8": "^0.5.
|
|
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",
|