eyevinn-channel-engine 3.4.0 → 3.4.2

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.
@@ -33,14 +33,24 @@ export interface VodResponseMetadata {
33
33
  }
34
34
  export interface VodTimedMetadata {
35
35
  'start-date': string;
36
+ 'x-schedule-end'?: string;
37
+ 'x-title'?: string;
38
+ 'x-channelid'?: string;
39
+ 'class': string;
36
40
  }
37
41
  export interface VodResponse {
42
+ id: string;
38
43
  uri: string;
44
+ offset?: number;
45
+ diffMs?: number;
46
+ desiredDuraiton?: number;
47
+ type?: string;
39
48
  currentMetadata?: VodResponseMetadata;
40
49
  timedMetadata?: VodTimedMetadata;
41
50
  }
42
51
  export interface IAssetManager {
43
52
  getNextVod: (vodRequest: VodRequest) => Promise<VodResponse>;
53
+ handleError?: (err: string, vodResponse: VodResponse) => void;
44
54
  }
45
55
  export interface ChannelProfile {
46
56
  bw: number;
@@ -75,8 +85,6 @@ export interface Schedule {
75
85
  duration?: number;
76
86
  }
77
87
  export interface IStreamSwitchManager {
78
- generateID: () => string;
79
- getPrerollUri: (channelId: string) => Promise<string>;
80
88
  getSchedule: (channelId: string) => Promise<Schedule>;
81
89
  }
82
90
  export declare class ChannelEngine {
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eyevinn-channel-engine",
3
- "version": "3.4.0",
3
+ "version": "3.4.2",
4
4
  "description": "OTT TV Channel Engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -43,7 +43,8 @@ var RefAssetManager = /** @class */ (function () {
43
43
  _this.pos[channelId] = 0;
44
44
  }
45
45
  vod.timedMetadata = {
46
- "start-date": new Date().toISOString(),
46
+ 'start-date': new Date().toISOString(),
47
+ 'class': 'se.eyevinn.demo'
47
48
  };
48
49
  resolve(vod);
49
50
  }
package/engine/server.ts CHANGED
@@ -71,16 +71,26 @@ export interface VodResponseMetadata {
71
71
 
72
72
  export interface VodTimedMetadata {
73
73
  'start-date': string;
74
+ 'x-schedule-end'?: string;
75
+ 'x-title'?: string;
76
+ 'x-channelid'?: string;
77
+ 'class': string;
74
78
  }
75
79
 
76
80
  export interface VodResponse {
81
+ id: string;
77
82
  uri: string;
83
+ offset?: number;
84
+ diffMs?: number;
85
+ desiredDuraiton?: number;
86
+ type?: string;
78
87
  currentMetadata?: VodResponseMetadata;
79
88
  timedMetadata?: VodTimedMetadata;
80
89
  }
81
90
 
82
91
  export interface IAssetManager {
83
92
  getNextVod: (vodRequest: VodRequest) => Promise<VodResponse>;
93
+ handleError?: (err: string, vodResponse: VodResponse) => void;
84
94
  }
85
95
 
86
96
  export interface ChannelProfile {
@@ -122,8 +132,6 @@ export interface Schedule {
122
132
  }
123
133
 
124
134
  export interface IStreamSwitchManager {
125
- generateID: () => string;
126
- getPrerollUri: (channelId: string) => Promise<string>;
127
135
  getSchedule: (channelId: string) => Promise<Schedule>;
128
136
  }
129
137
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eyevinn-channel-engine",
3
- "version": "3.4.0",
3
+ "version": "3.4.2",
4
4
  "description": "OTT TV Channel Engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/server-demux.ts CHANGED
@@ -47,7 +47,8 @@ class RefAssetManager implements IAssetManager {
47
47
  this.pos[channelId] = 0;
48
48
  }
49
49
  vod.timedMetadata = {
50
- "start-date": new Date().toISOString(),
50
+ 'start-date': new Date().toISOString(),
51
+ 'class': 'se.eyevinn.demo'
51
52
  };
52
53
  resolve(vod);
53
54
  } else {