@bitmovin/api-sdk 1.253.0 → 1.254.0
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/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/bitmovin-api-sdk.browser.js +5323 -5043
- package/dist/bitmovin-api-sdk.browser.min.js +1 -1
- package/dist/common/RestClient.js +1 -1
- package/dist/encoding/EncodingApi.d.ts +2 -2
- package/dist/encoding/EncodingApi.js +2 -2
- package/dist/encoding/encodings/live/LiveApi.d.ts +2 -0
- package/dist/encoding/encodings/live/LiveApi.js +2 -0
- package/dist/encoding/encodings/live/esam/EsamApi.d.ts +13 -0
- package/dist/encoding/encodings/live/esam/EsamApi.js +35 -0
- package/dist/encoding/encodings/live/esam/mediaPoints/MediaPointsApi.d.ts +20 -0
- package/dist/encoding/encodings/live/esam/mediaPoints/MediaPointsApi.js +49 -0
- package/dist/models/AdInsertionSettings.d.ts +21 -0
- package/dist/models/AdInsertionSettings.js +20 -0
- package/dist/models/EsamCondition.d.ts +22 -0
- package/dist/models/EsamCondition.js +21 -0
- package/dist/models/EsamDirection.d.ts +11 -0
- package/dist/models/EsamDirection.js +15 -0
- package/dist/models/EsamMediaPoint.d.ts +29 -0
- package/dist/models/EsamMediaPoint.js +24 -0
- package/dist/models/EsamSignal.d.ts +33 -0
- package/dist/models/EsamSignal.js +23 -0
- package/dist/models/LiveMediaIngestOutput.d.ts +6 -0
- package/dist/models/LiveMediaIngestOutput.js +1 -0
- package/dist/models/StartLiveEncodingRequest.d.ts +7 -0
- package/dist/models/StartLiveEncodingRequest.js +2 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
|
@@ -240,7 +240,7 @@ var HeaderHandler = /** @class */ (function (_super) {
|
|
|
240
240
|
var headers = {
|
|
241
241
|
'X-Api-Key': apiKey,
|
|
242
242
|
'X-Api-Client': 'bitmovin-api-sdk-javascript',
|
|
243
|
-
'X-Api-Client-Version': '1.
|
|
243
|
+
'X-Api-Client-Version': '1.254.0',
|
|
244
244
|
'Content-Type': 'application/json'
|
|
245
245
|
};
|
|
246
246
|
if (tenantOrgId) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BaseAPI } from '../common/BaseAPI';
|
|
2
2
|
import Configuration from '../common/Configuration';
|
|
3
|
+
import EncodingsApi from './encodings/EncodingsApi';
|
|
3
4
|
import InputsApi from './inputs/InputsApi';
|
|
4
5
|
import OutputsApi from './outputs/OutputsApi';
|
|
5
6
|
import ConfigurationsApi from './configurations/ConfigurationsApi';
|
|
6
7
|
import FiltersApi from './filters/FiltersApi';
|
|
7
|
-
import EncodingsApi from './encodings/EncodingsApi';
|
|
8
8
|
import LiveApi from './live/LiveApi';
|
|
9
9
|
import ManifestsApi from './manifests/ManifestsApi';
|
|
10
10
|
import InfrastructureApi from './infrastructure/InfrastructureApi';
|
|
@@ -19,11 +19,11 @@ import TemplatesApi from './templates/TemplatesApi';
|
|
|
19
19
|
* @extends {BaseAPI}
|
|
20
20
|
*/
|
|
21
21
|
export default class EncodingApi extends BaseAPI {
|
|
22
|
+
encodings: EncodingsApi;
|
|
22
23
|
inputs: InputsApi;
|
|
23
24
|
outputs: OutputsApi;
|
|
24
25
|
configurations: ConfigurationsApi;
|
|
25
26
|
filters: FiltersApi;
|
|
26
|
-
encodings: EncodingsApi;
|
|
27
27
|
live: LiveApi;
|
|
28
28
|
manifests: ManifestsApi;
|
|
29
29
|
infrastructure: InfrastructureApi;
|
|
@@ -16,11 +16,11 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
var BaseAPI_1 = require("../common/BaseAPI");
|
|
19
|
+
var EncodingsApi_1 = require("./encodings/EncodingsApi");
|
|
19
20
|
var InputsApi_1 = require("./inputs/InputsApi");
|
|
20
21
|
var OutputsApi_1 = require("./outputs/OutputsApi");
|
|
21
22
|
var ConfigurationsApi_1 = require("./configurations/ConfigurationsApi");
|
|
22
23
|
var FiltersApi_1 = require("./filters/FiltersApi");
|
|
23
|
-
var EncodingsApi_1 = require("./encodings/EncodingsApi");
|
|
24
24
|
var LiveApi_1 = require("./live/LiveApi");
|
|
25
25
|
var ManifestsApi_1 = require("./manifests/ManifestsApi");
|
|
26
26
|
var InfrastructureApi_1 = require("./infrastructure/InfrastructureApi");
|
|
@@ -38,11 +38,11 @@ var EncodingApi = /** @class */ (function (_super) {
|
|
|
38
38
|
__extends(EncodingApi, _super);
|
|
39
39
|
function EncodingApi(configuration) {
|
|
40
40
|
var _this = _super.call(this, configuration) || this;
|
|
41
|
+
_this.encodings = new EncodingsApi_1.default(configuration);
|
|
41
42
|
_this.inputs = new InputsApi_1.default(configuration);
|
|
42
43
|
_this.outputs = new OutputsApi_1.default(configuration);
|
|
43
44
|
_this.configurations = new ConfigurationsApi_1.default(configuration);
|
|
44
45
|
_this.filters = new FiltersApi_1.default(configuration);
|
|
45
|
-
_this.encodings = new EncodingsApi_1.default(configuration);
|
|
46
46
|
_this.live = new LiveApi_1.default(configuration);
|
|
47
47
|
_this.manifests = new ManifestsApi_1.default(configuration);
|
|
48
48
|
_this.infrastructure = new InfrastructureApi_1.default(configuration);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseAPI } from '../../../common/BaseAPI';
|
|
2
2
|
import Configuration from '../../../common/Configuration';
|
|
3
|
+
import EsamApi from './esam/EsamApi';
|
|
3
4
|
import ResetLiveManifestTimeshiftApi from './resetLiveManifestTimeshift/ResetLiveManifestTimeshiftApi';
|
|
4
5
|
import HeartbeatApi from './heartbeat/HeartbeatApi';
|
|
5
6
|
import HdApi from './hd/HdApi';
|
|
@@ -15,6 +16,7 @@ import StartLiveEncodingRequest from '../../../models/StartLiveEncodingRequest';
|
|
|
15
16
|
* @extends {BaseAPI}
|
|
16
17
|
*/
|
|
17
18
|
export default class LiveApi extends BaseAPI {
|
|
19
|
+
esam: EsamApi;
|
|
18
20
|
resetLiveManifestTimeshift: ResetLiveManifestTimeshiftApi;
|
|
19
21
|
heartbeat: HeartbeatApi;
|
|
20
22
|
hd: HdApi;
|
|
@@ -17,6 +17,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
var BaseAPI_1 = require("../../../common/BaseAPI");
|
|
19
19
|
var Mapper_1 = require("../../../common/Mapper");
|
|
20
|
+
var EsamApi_1 = require("./esam/EsamApi");
|
|
20
21
|
var ResetLiveManifestTimeshiftApi_1 = require("./resetLiveManifestTimeshift/ResetLiveManifestTimeshiftApi");
|
|
21
22
|
var HeartbeatApi_1 = require("./heartbeat/HeartbeatApi");
|
|
22
23
|
var HdApi_1 = require("./hd/HdApi");
|
|
@@ -35,6 +36,7 @@ var LiveApi = /** @class */ (function (_super) {
|
|
|
35
36
|
__extends(LiveApi, _super);
|
|
36
37
|
function LiveApi(configuration) {
|
|
37
38
|
var _this = _super.call(this, configuration) || this;
|
|
39
|
+
_this.esam = new EsamApi_1.default(configuration);
|
|
38
40
|
_this.resetLiveManifestTimeshift = new ResetLiveManifestTimeshiftApi_1.default(configuration);
|
|
39
41
|
_this.heartbeat = new HeartbeatApi_1.default(configuration);
|
|
40
42
|
_this.hd = new HdApi_1.default(configuration);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseAPI } from '../../../../common/BaseAPI';
|
|
2
|
+
import Configuration from '../../../../common/Configuration';
|
|
3
|
+
import MediaPointsApi from './mediaPoints/MediaPointsApi';
|
|
4
|
+
/**
|
|
5
|
+
* EsamApi - object-oriented interface
|
|
6
|
+
* @export
|
|
7
|
+
* @class EsamApi
|
|
8
|
+
* @extends {BaseAPI}
|
|
9
|
+
*/
|
|
10
|
+
export default class EsamApi extends BaseAPI {
|
|
11
|
+
mediaPoints: MediaPointsApi;
|
|
12
|
+
constructor(configuration: Configuration);
|
|
13
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var BaseAPI_1 = require("../../../../common/BaseAPI");
|
|
19
|
+
var MediaPointsApi_1 = require("./mediaPoints/MediaPointsApi");
|
|
20
|
+
/**
|
|
21
|
+
* EsamApi - object-oriented interface
|
|
22
|
+
* @export
|
|
23
|
+
* @class EsamApi
|
|
24
|
+
* @extends {BaseAPI}
|
|
25
|
+
*/
|
|
26
|
+
var EsamApi = /** @class */ (function (_super) {
|
|
27
|
+
__extends(EsamApi, _super);
|
|
28
|
+
function EsamApi(configuration) {
|
|
29
|
+
var _this = _super.call(this, configuration) || this;
|
|
30
|
+
_this.mediaPoints = new MediaPointsApi_1.default(configuration);
|
|
31
|
+
return _this;
|
|
32
|
+
}
|
|
33
|
+
return EsamApi;
|
|
34
|
+
}(BaseAPI_1.BaseAPI));
|
|
35
|
+
exports.default = EsamApi;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BaseAPI } from '../../../../../common/BaseAPI';
|
|
2
|
+
import Configuration from '../../../../../common/Configuration';
|
|
3
|
+
import EsamMediaPoint from '../../../../../models/EsamMediaPoint';
|
|
4
|
+
/**
|
|
5
|
+
* MediaPointsApi - object-oriented interface
|
|
6
|
+
* @export
|
|
7
|
+
* @class MediaPointsApi
|
|
8
|
+
* @extends {BaseAPI}
|
|
9
|
+
*/
|
|
10
|
+
export default class MediaPointsApi extends BaseAPI {
|
|
11
|
+
constructor(configuration: Configuration);
|
|
12
|
+
/**
|
|
13
|
+
* @summary Create ESAM media point for live stream
|
|
14
|
+
* @param {string} encodingId Id of the encoding
|
|
15
|
+
* @param {EsamMediaPoint} esamMediaPoint ESAM media point
|
|
16
|
+
* @throws {BitmovinError}
|
|
17
|
+
* @memberof MediaPointsApi
|
|
18
|
+
*/
|
|
19
|
+
create(encodingId: string, esamMediaPoint?: EsamMediaPoint): Promise<EsamMediaPoint>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var BaseAPI_1 = require("../../../../../common/BaseAPI");
|
|
19
|
+
var Mapper_1 = require("../../../../../common/Mapper");
|
|
20
|
+
var EsamMediaPoint_1 = require("../../../../../models/EsamMediaPoint");
|
|
21
|
+
/**
|
|
22
|
+
* MediaPointsApi - object-oriented interface
|
|
23
|
+
* @export
|
|
24
|
+
* @class MediaPointsApi
|
|
25
|
+
* @extends {BaseAPI}
|
|
26
|
+
*/
|
|
27
|
+
var MediaPointsApi = /** @class */ (function (_super) {
|
|
28
|
+
__extends(MediaPointsApi, _super);
|
|
29
|
+
function MediaPointsApi(configuration) {
|
|
30
|
+
return _super.call(this, configuration) || this;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @summary Create ESAM media point for live stream
|
|
34
|
+
* @param {string} encodingId Id of the encoding
|
|
35
|
+
* @param {EsamMediaPoint} esamMediaPoint ESAM media point
|
|
36
|
+
* @throws {BitmovinError}
|
|
37
|
+
* @memberof MediaPointsApi
|
|
38
|
+
*/
|
|
39
|
+
MediaPointsApi.prototype.create = function (encodingId, esamMediaPoint) {
|
|
40
|
+
var pathParamMap = {
|
|
41
|
+
encoding_id: encodingId
|
|
42
|
+
};
|
|
43
|
+
return this.restClient.post('/encoding/encodings/{encoding_id}/live/esam/media-points', pathParamMap, esamMediaPoint).then(function (response) {
|
|
44
|
+
return (0, Mapper_1.map)(response, EsamMediaPoint_1.default);
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
return MediaPointsApi;
|
|
48
|
+
}(BaseAPI_1.BaseAPI));
|
|
49
|
+
exports.default = MediaPointsApi;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import ClockSynchronizationMode from './ClockSynchronizationMode';
|
|
2
|
+
/**
|
|
3
|
+
* @export
|
|
4
|
+
* @class AdInsertionSettings
|
|
5
|
+
*/
|
|
6
|
+
export declare class AdInsertionSettings {
|
|
7
|
+
/**
|
|
8
|
+
* Enabling this allows on-demand insertion of ESAM MediaPoints. When enabled, the encoder ensures that at least one SCTE-35 data stream is available.
|
|
9
|
+
* @type {boolean}
|
|
10
|
+
* @memberof AdInsertionSettings
|
|
11
|
+
*/
|
|
12
|
+
enableEsamMediaPointInsertion?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Mode of clock synchronization during ad insertion. If an HLS manifest is configured that has a PDT source set, the encoder defaults to the equivalent clockSynchronizationMode. If both, HLS PDT source and clockSynchronizationMode, are set and don't match, the encoding will fail.
|
|
15
|
+
* @type {ClockSynchronizationMode}
|
|
16
|
+
* @memberof AdInsertionSettings
|
|
17
|
+
*/
|
|
18
|
+
clockSynchronizationMode?: ClockSynchronizationMode;
|
|
19
|
+
constructor(obj?: Partial<AdInsertionSettings>);
|
|
20
|
+
}
|
|
21
|
+
export default AdInsertionSettings;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdInsertionSettings = void 0;
|
|
4
|
+
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
/**
|
|
6
|
+
* @export
|
|
7
|
+
* @class AdInsertionSettings
|
|
8
|
+
*/
|
|
9
|
+
var AdInsertionSettings = /** @class */ (function () {
|
|
10
|
+
function AdInsertionSettings(obj) {
|
|
11
|
+
if (!obj) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
this.enableEsamMediaPointInsertion = (0, Mapper_1.map)(obj.enableEsamMediaPointInsertion);
|
|
15
|
+
this.clockSynchronizationMode = (0, Mapper_1.map)(obj.clockSynchronizationMode);
|
|
16
|
+
}
|
|
17
|
+
return AdInsertionSettings;
|
|
18
|
+
}());
|
|
19
|
+
exports.AdInsertionSettings = AdInsertionSettings;
|
|
20
|
+
exports.default = AdInsertionSettings;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import EsamDirection from './EsamDirection';
|
|
2
|
+
/**
|
|
3
|
+
* ESAM condition following the SCTE-250 standard with timing offset and directional marker (OUT/IN) for signaling content boundaries
|
|
4
|
+
* @export
|
|
5
|
+
* @class EsamCondition
|
|
6
|
+
*/
|
|
7
|
+
export declare class EsamCondition {
|
|
8
|
+
/**
|
|
9
|
+
* The offset from the matched signal when this condition applies in ISO 8601 duration format, accurate to milliseconds (required)
|
|
10
|
+
* @type {string}
|
|
11
|
+
* @memberof EsamCondition
|
|
12
|
+
*/
|
|
13
|
+
offset?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Direction marker indicating the boundary type (OUT for start, IN for end) (required)
|
|
16
|
+
* @type {EsamDirection}
|
|
17
|
+
* @memberof EsamCondition
|
|
18
|
+
*/
|
|
19
|
+
direction?: EsamDirection;
|
|
20
|
+
constructor(obj?: Partial<EsamCondition>);
|
|
21
|
+
}
|
|
22
|
+
export default EsamCondition;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EsamCondition = void 0;
|
|
4
|
+
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
/**
|
|
6
|
+
* ESAM condition following the SCTE-250 standard with timing offset and directional marker (OUT/IN) for signaling content boundaries
|
|
7
|
+
* @export
|
|
8
|
+
* @class EsamCondition
|
|
9
|
+
*/
|
|
10
|
+
var EsamCondition = /** @class */ (function () {
|
|
11
|
+
function EsamCondition(obj) {
|
|
12
|
+
if (!obj) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
this.offset = (0, Mapper_1.map)(obj.offset);
|
|
16
|
+
this.direction = (0, Mapper_1.map)(obj.direction);
|
|
17
|
+
}
|
|
18
|
+
return EsamCondition;
|
|
19
|
+
}());
|
|
20
|
+
exports.EsamCondition = EsamCondition;
|
|
21
|
+
exports.default = EsamCondition;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EsamDirection = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* ESAM direction indicator following the SCTE-250 standard
|
|
6
|
+
* @export
|
|
7
|
+
* @enum {string}
|
|
8
|
+
*/
|
|
9
|
+
var EsamDirection;
|
|
10
|
+
(function (EsamDirection) {
|
|
11
|
+
EsamDirection["OUT"] = "OUT";
|
|
12
|
+
EsamDirection["IN"] = "IN";
|
|
13
|
+
EsamDirection["BOTH"] = "BOTH";
|
|
14
|
+
})(EsamDirection || (exports.EsamDirection = EsamDirection = {}));
|
|
15
|
+
exports.default = EsamDirection;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import EsamCondition from './EsamCondition';
|
|
2
|
+
import EsamSignal from './EsamSignal';
|
|
3
|
+
/**
|
|
4
|
+
* ESAM media point following the SCTE-250 standard
|
|
5
|
+
* @export
|
|
6
|
+
* @class EsamMediaPoint
|
|
7
|
+
*/
|
|
8
|
+
export declare class EsamMediaPoint {
|
|
9
|
+
/**
|
|
10
|
+
* ISO 8601 date-time specifying when the signal should be matched and inserted into the live stream
|
|
11
|
+
* @type {Date}
|
|
12
|
+
* @memberof EsamMediaPoint
|
|
13
|
+
*/
|
|
14
|
+
matchTime?: Date;
|
|
15
|
+
/**
|
|
16
|
+
* Array of ESAM signals containing SCTE-35 binary data. At least one signal is required (required)
|
|
17
|
+
* @type {EsamSignal[]}
|
|
18
|
+
* @memberof EsamMediaPoint
|
|
19
|
+
*/
|
|
20
|
+
signals?: EsamSignal[];
|
|
21
|
+
/**
|
|
22
|
+
* Optional array of ESAM conditions with timing offsets and directional markers (OUT/IN) for signaling content boundaries
|
|
23
|
+
* @type {EsamCondition[]}
|
|
24
|
+
* @memberof EsamMediaPoint
|
|
25
|
+
*/
|
|
26
|
+
conditions?: EsamCondition[];
|
|
27
|
+
constructor(obj?: Partial<EsamMediaPoint>);
|
|
28
|
+
}
|
|
29
|
+
export default EsamMediaPoint;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EsamMediaPoint = void 0;
|
|
4
|
+
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
var EsamCondition_1 = require("./EsamCondition");
|
|
6
|
+
var EsamSignal_1 = require("./EsamSignal");
|
|
7
|
+
/**
|
|
8
|
+
* ESAM media point following the SCTE-250 standard
|
|
9
|
+
* @export
|
|
10
|
+
* @class EsamMediaPoint
|
|
11
|
+
*/
|
|
12
|
+
var EsamMediaPoint = /** @class */ (function () {
|
|
13
|
+
function EsamMediaPoint(obj) {
|
|
14
|
+
if (!obj) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
this.matchTime = (0, Mapper_1.map)(obj.matchTime, Date);
|
|
18
|
+
this.signals = (0, Mapper_1.mapArray)(obj.signals, EsamSignal_1.default);
|
|
19
|
+
this.conditions = (0, Mapper_1.mapArray)(obj.conditions, EsamCondition_1.default);
|
|
20
|
+
}
|
|
21
|
+
return EsamMediaPoint;
|
|
22
|
+
}());
|
|
23
|
+
exports.EsamMediaPoint = EsamMediaPoint;
|
|
24
|
+
exports.default = EsamMediaPoint;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ESAM signal following the SCTE-250 standard
|
|
3
|
+
* @export
|
|
4
|
+
* @class EsamSignal
|
|
5
|
+
*/
|
|
6
|
+
export declare class EsamSignal {
|
|
7
|
+
/**
|
|
8
|
+
* The offset from the matched signal in ISO 8601 duration format, accurate to milliseconds
|
|
9
|
+
* @type {string}
|
|
10
|
+
* @memberof EsamSignal
|
|
11
|
+
*/
|
|
12
|
+
offset?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Base64-encoded SCTE-35 binary data to be inserted into the stream (required)
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof EsamSignal
|
|
17
|
+
*/
|
|
18
|
+
binary?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Interval in ISO 8601 duration format for which the signal should be repeated. A signal may be specified as repeating when the interval and end attributes are present. In this case, the signal is executed at the time specified by offset and again at the time specified by adding interval to offset. This should be continued until reaching the duration of offset + end.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof EsamSignal
|
|
23
|
+
*/
|
|
24
|
+
interval?: string;
|
|
25
|
+
/**
|
|
26
|
+
* End duration in ISO 8601 duration format when a repeated signal should stop being repeated
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof EsamSignal
|
|
29
|
+
*/
|
|
30
|
+
end?: string;
|
|
31
|
+
constructor(obj?: Partial<EsamSignal>);
|
|
32
|
+
}
|
|
33
|
+
export default EsamSignal;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EsamSignal = void 0;
|
|
4
|
+
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
/**
|
|
6
|
+
* ESAM signal following the SCTE-250 standard
|
|
7
|
+
* @export
|
|
8
|
+
* @class EsamSignal
|
|
9
|
+
*/
|
|
10
|
+
var EsamSignal = /** @class */ (function () {
|
|
11
|
+
function EsamSignal(obj) {
|
|
12
|
+
if (!obj) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
this.offset = (0, Mapper_1.map)(obj.offset);
|
|
16
|
+
this.binary = (0, Mapper_1.map)(obj.binary);
|
|
17
|
+
this.interval = (0, Mapper_1.map)(obj.interval);
|
|
18
|
+
this.end = (0, Mapper_1.map)(obj.end);
|
|
19
|
+
}
|
|
20
|
+
return EsamSignal;
|
|
21
|
+
}());
|
|
22
|
+
exports.EsamSignal = EsamSignal;
|
|
23
|
+
exports.default = EsamSignal;
|
|
@@ -18,6 +18,12 @@ export declare class LiveMediaIngestOutput extends Output {
|
|
|
18
18
|
* @memberof LiveMediaIngestOutput
|
|
19
19
|
*/
|
|
20
20
|
publishingPoint?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Enable passthrough of SCTE-35 messages from input to output. Default is false.
|
|
23
|
+
* @type {boolean}
|
|
24
|
+
* @memberof LiveMediaIngestOutput
|
|
25
|
+
*/
|
|
26
|
+
scte35Passthrough?: boolean;
|
|
21
27
|
constructor(obj?: Partial<LiveMediaIngestOutput>);
|
|
22
28
|
}
|
|
23
29
|
export default LiveMediaIngestOutput;
|
|
@@ -38,6 +38,7 @@ var LiveMediaIngestOutput = /** @class */ (function (_super) {
|
|
|
38
38
|
return _this;
|
|
39
39
|
}
|
|
40
40
|
_this.publishingPoint = (0, Mapper_1.map)(obj.publishingPoint);
|
|
41
|
+
_this.scte35Passthrough = (0, Mapper_1.map)(obj.scte35Passthrough);
|
|
41
42
|
return _this;
|
|
42
43
|
}
|
|
43
44
|
return LiveMediaIngestOutput;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import AdInsertionSettings from './AdInsertionSettings';
|
|
1
2
|
import AutoRestartConfiguration from './AutoRestartConfiguration';
|
|
2
3
|
import CacheControlSettings from './CacheControlSettings';
|
|
3
4
|
import EncodingMode from './EncodingMode';
|
|
@@ -72,6 +73,12 @@ export declare class StartLiveEncodingRequest {
|
|
|
72
73
|
* @memberof StartLiveEncodingRequest
|
|
73
74
|
*/
|
|
74
75
|
cacheControlSettings?: CacheControlSettings;
|
|
76
|
+
/**
|
|
77
|
+
* Configuration for ad insertion features like ESAM MediaPoint insertion
|
|
78
|
+
* @type {AdInsertionSettings}
|
|
79
|
+
* @memberof StartLiveEncodingRequest
|
|
80
|
+
*/
|
|
81
|
+
adInsertionSettings?: AdInsertionSettings;
|
|
75
82
|
constructor(obj?: Partial<StartLiveEncodingRequest>);
|
|
76
83
|
}
|
|
77
84
|
export default StartLiveEncodingRequest;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StartLiveEncodingRequest = void 0;
|
|
4
4
|
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
var AdInsertionSettings_1 = require("./AdInsertionSettings");
|
|
5
6
|
var AutoRestartConfiguration_1 = require("./AutoRestartConfiguration");
|
|
6
7
|
var CacheControlSettings_1 = require("./CacheControlSettings");
|
|
7
8
|
var EsamSettings_1 = require("./EsamSettings");
|
|
@@ -28,6 +29,7 @@ var StartLiveEncodingRequest = /** @class */ (function () {
|
|
|
28
29
|
this.autoShutdownConfiguration = (0, Mapper_1.map)(obj.autoShutdownConfiguration, LiveAutoShutdownConfiguration_1.default);
|
|
29
30
|
this.esamSettings = (0, Mapper_1.map)(obj.esamSettings, EsamSettings_1.default);
|
|
30
31
|
this.cacheControlSettings = (0, Mapper_1.map)(obj.cacheControlSettings, CacheControlSettings_1.default);
|
|
32
|
+
this.adInsertionSettings = (0, Mapper_1.map)(obj.adInsertionSettings, AdInsertionSettings_1.default);
|
|
31
33
|
}
|
|
32
34
|
return StartLiveEncodingRequest;
|
|
33
35
|
}());
|
package/dist/models/index.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export * from './AdAnalyticsQueryRequest';
|
|
|
32
32
|
export * from './AdAnalyticsStddevQueryRequest';
|
|
33
33
|
export * from './AdAnalyticsSumQueryRequest';
|
|
34
34
|
export * from './AdAnalyticsVarianceQueryRequest';
|
|
35
|
+
export * from './AdInsertionSettings';
|
|
35
36
|
export * from './AdMarkersSource';
|
|
36
37
|
export * from './AdPosition';
|
|
37
38
|
export * from './AdaptationSet';
|
|
@@ -387,7 +388,11 @@ export * from './EnhancedDeinterlaceParity';
|
|
|
387
388
|
export * from './EnhancedWatermarkFilter';
|
|
388
389
|
export * from './ErrorDetails';
|
|
389
390
|
export * from './ErrorRetryHint';
|
|
391
|
+
export * from './EsamCondition';
|
|
392
|
+
export * from './EsamDirection';
|
|
393
|
+
export * from './EsamMediaPoint';
|
|
390
394
|
export * from './EsamSettings';
|
|
395
|
+
export * from './EsamSignal';
|
|
391
396
|
export * from './ExternalIdMode';
|
|
392
397
|
export * from './FairPlayDrm';
|
|
393
398
|
export * from './FileInputStream';
|
package/dist/models/index.js
CHANGED
|
@@ -48,6 +48,7 @@ __exportStar(require("./AdAnalyticsQueryRequest"), exports);
|
|
|
48
48
|
__exportStar(require("./AdAnalyticsStddevQueryRequest"), exports);
|
|
49
49
|
__exportStar(require("./AdAnalyticsSumQueryRequest"), exports);
|
|
50
50
|
__exportStar(require("./AdAnalyticsVarianceQueryRequest"), exports);
|
|
51
|
+
__exportStar(require("./AdInsertionSettings"), exports);
|
|
51
52
|
__exportStar(require("./AdMarkersSource"), exports);
|
|
52
53
|
__exportStar(require("./AdPosition"), exports);
|
|
53
54
|
__exportStar(require("./AdaptationSet"), exports);
|
|
@@ -403,7 +404,11 @@ __exportStar(require("./EnhancedDeinterlaceParity"), exports);
|
|
|
403
404
|
__exportStar(require("./EnhancedWatermarkFilter"), exports);
|
|
404
405
|
__exportStar(require("./ErrorDetails"), exports);
|
|
405
406
|
__exportStar(require("./ErrorRetryHint"), exports);
|
|
407
|
+
__exportStar(require("./EsamCondition"), exports);
|
|
408
|
+
__exportStar(require("./EsamDirection"), exports);
|
|
409
|
+
__exportStar(require("./EsamMediaPoint"), exports);
|
|
406
410
|
__exportStar(require("./EsamSettings"), exports);
|
|
411
|
+
__exportStar(require("./EsamSignal"), exports);
|
|
407
412
|
__exportStar(require("./ExternalIdMode"), exports);
|
|
408
413
|
__exportStar(require("./FairPlayDrm"), exports);
|
|
409
414
|
__exportStar(require("./FileInputStream"), exports);
|