@bitmovin/api-sdk 1.251.0 → 1.252.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/README.md +1 -1
- package/dist/bitmovin-api-sdk.browser.js +357 -3
- package/dist/bitmovin-api-sdk.browser.min.js +1 -1
- package/dist/common/RestClient.js +1 -1
- package/dist/encoding/encodings/live/LiveApi.d.ts +2 -0
- package/dist/encoding/encodings/live/LiveApi.js +2 -0
- package/dist/encoding/encodings/live/heartbeat/HeartbeatApi.d.ts +19 -0
- package/dist/encoding/encodings/live/heartbeat/HeartbeatApi.js +48 -0
- package/dist/models/DashManifest.d.ts +6 -0
- package/dist/models/DashManifest.js +1 -0
- package/dist/models/LiveEncodingEventName.d.ts +4 -1
- package/dist/models/LiveEncodingEventName.js +3 -0
- package/dist/models/LiveEncodingHeartbeat.d.ts +29 -0
- package/dist/models/LiveEncodingHeartbeat.js +24 -0
- package/dist/models/LiveEncodingHeartbeatEvent.d.ts +20 -0
- package/dist/models/LiveEncodingHeartbeatEvent.js +21 -0
- package/dist/models/LiveEncodingHeartbeatEventDetails.d.ts +20 -0
- package/dist/models/LiveEncodingHeartbeatEventDetails.js +20 -0
- package/dist/models/LiveEncodingHeartbeatEventType.d.ts +12 -0
- package/dist/models/LiveEncodingHeartbeatEventType.js +16 -0
- package/dist/models/LiveEncodingHeartbeatIngest.d.ts +41 -0
- package/dist/models/LiveEncodingHeartbeatIngest.js +27 -0
- package/dist/models/LiveEncodingHeartbeatIngestPoint.d.ts +39 -0
- package/dist/models/LiveEncodingHeartbeatIngestPoint.js +24 -0
- package/dist/models/LiveEncodingHeartbeatIngestStream.d.ts +117 -0
- package/dist/models/LiveEncodingHeartbeatIngestStream.js +37 -0
- package/dist/models/LiveEncodingStatsEventDetails.d.ts +3 -9
- package/dist/models/LiveEncodingStatsEventDetails.js +1 -2
- package/dist/models/RtmpUserIngestInfo.d.ts +45 -0
- package/dist/models/RtmpUserIngestInfo.js +25 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -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.252.0',
|
|
244
244
|
'Content-Type': 'application/json'
|
|
245
245
|
};
|
|
246
246
|
if (tenantOrgId) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseAPI } from '../../../common/BaseAPI';
|
|
2
2
|
import Configuration from '../../../common/Configuration';
|
|
3
3
|
import ResetLiveManifestTimeshiftApi from './resetLiveManifestTimeshift/ResetLiveManifestTimeshiftApi';
|
|
4
|
+
import HeartbeatApi from './heartbeat/HeartbeatApi';
|
|
4
5
|
import HdApi from './hd/HdApi';
|
|
5
6
|
import InsertableContentApi from './insertableContent/InsertableContentApi';
|
|
6
7
|
import Scte35CueApi from './scte35Cue/Scte35CueApi';
|
|
@@ -15,6 +16,7 @@ import StartLiveEncodingRequest from '../../../models/StartLiveEncodingRequest';
|
|
|
15
16
|
*/
|
|
16
17
|
export default class LiveApi extends BaseAPI {
|
|
17
18
|
resetLiveManifestTimeshift: ResetLiveManifestTimeshiftApi;
|
|
19
|
+
heartbeat: HeartbeatApi;
|
|
18
20
|
hd: HdApi;
|
|
19
21
|
insertableContent: InsertableContentApi;
|
|
20
22
|
scte35Cue: Scte35CueApi;
|
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
var BaseAPI_1 = require("../../../common/BaseAPI");
|
|
19
19
|
var Mapper_1 = require("../../../common/Mapper");
|
|
20
20
|
var ResetLiveManifestTimeshiftApi_1 = require("./resetLiveManifestTimeshift/ResetLiveManifestTimeshiftApi");
|
|
21
|
+
var HeartbeatApi_1 = require("./heartbeat/HeartbeatApi");
|
|
21
22
|
var HdApi_1 = require("./hd/HdApi");
|
|
22
23
|
var InsertableContentApi_1 = require("./insertableContent/InsertableContentApi");
|
|
23
24
|
var Scte35CueApi_1 = require("./scte35Cue/Scte35CueApi");
|
|
@@ -35,6 +36,7 @@ var LiveApi = /** @class */ (function (_super) {
|
|
|
35
36
|
function LiveApi(configuration) {
|
|
36
37
|
var _this = _super.call(this, configuration) || this;
|
|
37
38
|
_this.resetLiveManifestTimeshift = new ResetLiveManifestTimeshiftApi_1.default(configuration);
|
|
39
|
+
_this.heartbeat = new HeartbeatApi_1.default(configuration);
|
|
38
40
|
_this.hd = new HdApi_1.default(configuration);
|
|
39
41
|
_this.insertableContent = new InsertableContentApi_1.default(configuration);
|
|
40
42
|
_this.scte35Cue = new Scte35CueApi_1.default(configuration);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseAPI } from '../../../../common/BaseAPI';
|
|
2
|
+
import Configuration from '../../../../common/Configuration';
|
|
3
|
+
import LiveEncodingHeartbeat from '../../../../models/LiveEncodingHeartbeat';
|
|
4
|
+
/**
|
|
5
|
+
* HeartbeatApi - object-oriented interface
|
|
6
|
+
* @export
|
|
7
|
+
* @class HeartbeatApi
|
|
8
|
+
* @extends {BaseAPI}
|
|
9
|
+
*/
|
|
10
|
+
export default class HeartbeatApi extends BaseAPI {
|
|
11
|
+
constructor(configuration: Configuration);
|
|
12
|
+
/**
|
|
13
|
+
* @summary Live Encoding Heartbeat
|
|
14
|
+
* @param {string} encodingId Id of the encoding.
|
|
15
|
+
* @throws {BitmovinError}
|
|
16
|
+
* @memberof HeartbeatApi
|
|
17
|
+
*/
|
|
18
|
+
get(encodingId: string): Promise<LiveEncodingHeartbeat>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 LiveEncodingHeartbeat_1 = require("../../../../models/LiveEncodingHeartbeat");
|
|
21
|
+
/**
|
|
22
|
+
* HeartbeatApi - object-oriented interface
|
|
23
|
+
* @export
|
|
24
|
+
* @class HeartbeatApi
|
|
25
|
+
* @extends {BaseAPI}
|
|
26
|
+
*/
|
|
27
|
+
var HeartbeatApi = /** @class */ (function (_super) {
|
|
28
|
+
__extends(HeartbeatApi, _super);
|
|
29
|
+
function HeartbeatApi(configuration) {
|
|
30
|
+
return _super.call(this, configuration) || this;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @summary Live Encoding Heartbeat
|
|
34
|
+
* @param {string} encodingId Id of the encoding.
|
|
35
|
+
* @throws {BitmovinError}
|
|
36
|
+
* @memberof HeartbeatApi
|
|
37
|
+
*/
|
|
38
|
+
HeartbeatApi.prototype.get = function (encodingId) {
|
|
39
|
+
var pathParamMap = {
|
|
40
|
+
encoding_id: encodingId
|
|
41
|
+
};
|
|
42
|
+
return this.restClient.get('/encoding/encodings/{encoding_id}/live/heartbeat', pathParamMap).then(function (response) {
|
|
43
|
+
return (0, Mapper_1.map)(response, LiveEncodingHeartbeat_1.default);
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
return HeartbeatApi;
|
|
47
|
+
}(BaseAPI_1.BaseAPI));
|
|
48
|
+
exports.default = HeartbeatApi;
|
|
@@ -45,6 +45,12 @@ export declare class DashManifest extends Manifest {
|
|
|
45
45
|
* @memberof DashManifest
|
|
46
46
|
*/
|
|
47
47
|
iso8601TimestampFormat?: DashISO8601TimestampFormat;
|
|
48
|
+
/**
|
|
49
|
+
* The minimum buffer time in seconds that the client should maintain to ensure uninterrupted playback. Default is 2 seconds. Note: For VOD ON_DEMAND dash manifests, the default value may differ from 2.0 seconds if not explicitly set.
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof DashManifest
|
|
52
|
+
*/
|
|
53
|
+
minBufferTime?: number;
|
|
48
54
|
constructor(obj?: Partial<DashManifest>);
|
|
49
55
|
}
|
|
50
56
|
export default DashManifest;
|
|
@@ -37,6 +37,7 @@ var DashManifest = /** @class */ (function (_super) {
|
|
|
37
37
|
_this.utcTimings = (0, Mapper_1.mapArray)(obj.utcTimings, UtcTiming_1.default);
|
|
38
38
|
_this.dashEditionCompatibility = (0, Mapper_1.map)(obj.dashEditionCompatibility);
|
|
39
39
|
_this.iso8601TimestampFormat = (0, Mapper_1.map)(obj.iso8601TimestampFormat);
|
|
40
|
+
_this.minBufferTime = (0, Mapper_1.map)(obj.minBufferTime);
|
|
40
41
|
return _this;
|
|
41
42
|
}
|
|
42
43
|
return DashManifest;
|
|
@@ -8,6 +8,9 @@ export declare enum LiveEncodingEventName {
|
|
|
8
8
|
RECONNECT = "RECONNECT",
|
|
9
9
|
RESYNCING = "RESYNCING",
|
|
10
10
|
IDLE = "IDLE",
|
|
11
|
-
ERROR = "ERROR"
|
|
11
|
+
ERROR = "ERROR",
|
|
12
|
+
WARNING = "WARNING",
|
|
13
|
+
PICTURE_TIMING = "PICTURE_TIMING",
|
|
14
|
+
INFO = "INFO"
|
|
12
15
|
}
|
|
13
16
|
export default LiveEncodingEventName;
|
|
@@ -13,5 +13,8 @@ var LiveEncodingEventName;
|
|
|
13
13
|
LiveEncodingEventName["RESYNCING"] = "RESYNCING";
|
|
14
14
|
LiveEncodingEventName["IDLE"] = "IDLE";
|
|
15
15
|
LiveEncodingEventName["ERROR"] = "ERROR";
|
|
16
|
+
LiveEncodingEventName["WARNING"] = "WARNING";
|
|
17
|
+
LiveEncodingEventName["PICTURE_TIMING"] = "PICTURE_TIMING";
|
|
18
|
+
LiveEncodingEventName["INFO"] = "INFO";
|
|
16
19
|
})(LiveEncodingEventName || (exports.LiveEncodingEventName = LiveEncodingEventName = {}));
|
|
17
20
|
exports.default = LiveEncodingEventName;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import LiveEncodingHeartbeatEvent from './LiveEncodingHeartbeatEvent';
|
|
2
|
+
import LiveEncodingHeartbeatIngest from './LiveEncodingHeartbeatIngest';
|
|
3
|
+
/**
|
|
4
|
+
* Heartbeat data for a Live Encoding.
|
|
5
|
+
* @export
|
|
6
|
+
* @class LiveEncodingHeartbeat
|
|
7
|
+
*/
|
|
8
|
+
export declare class LiveEncodingHeartbeat {
|
|
9
|
+
/**
|
|
10
|
+
* timestamp, returned as UTC expressed in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
|
|
11
|
+
* @type {Date}
|
|
12
|
+
* @memberof LiveEncodingHeartbeat
|
|
13
|
+
*/
|
|
14
|
+
timestamp?: Date;
|
|
15
|
+
/**
|
|
16
|
+
* Information about the live ingestion status
|
|
17
|
+
* @type {LiveEncodingHeartbeatIngest}
|
|
18
|
+
* @memberof LiveEncodingHeartbeat
|
|
19
|
+
*/
|
|
20
|
+
ingest?: LiveEncodingHeartbeatIngest;
|
|
21
|
+
/**
|
|
22
|
+
* Live encoding heartbeat events
|
|
23
|
+
* @type {LiveEncodingHeartbeatEvent[]}
|
|
24
|
+
* @memberof LiveEncodingHeartbeat
|
|
25
|
+
*/
|
|
26
|
+
events?: LiveEncodingHeartbeatEvent[];
|
|
27
|
+
constructor(obj?: Partial<LiveEncodingHeartbeat>);
|
|
28
|
+
}
|
|
29
|
+
export default LiveEncodingHeartbeat;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LiveEncodingHeartbeat = void 0;
|
|
4
|
+
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
var LiveEncodingHeartbeatEvent_1 = require("./LiveEncodingHeartbeatEvent");
|
|
6
|
+
var LiveEncodingHeartbeatIngest_1 = require("./LiveEncodingHeartbeatIngest");
|
|
7
|
+
/**
|
|
8
|
+
* Heartbeat data for a Live Encoding.
|
|
9
|
+
* @export
|
|
10
|
+
* @class LiveEncodingHeartbeat
|
|
11
|
+
*/
|
|
12
|
+
var LiveEncodingHeartbeat = /** @class */ (function () {
|
|
13
|
+
function LiveEncodingHeartbeat(obj) {
|
|
14
|
+
if (!obj) {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
this.timestamp = (0, Mapper_1.map)(obj.timestamp, Date);
|
|
18
|
+
this.ingest = (0, Mapper_1.map)(obj.ingest, LiveEncodingHeartbeatIngest_1.default);
|
|
19
|
+
this.events = (0, Mapper_1.mapArray)(obj.events, LiveEncodingHeartbeatEvent_1.default);
|
|
20
|
+
}
|
|
21
|
+
return LiveEncodingHeartbeat;
|
|
22
|
+
}());
|
|
23
|
+
exports.LiveEncodingHeartbeat = LiveEncodingHeartbeat;
|
|
24
|
+
exports.default = LiveEncodingHeartbeat;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import LiveEncodingHeartbeatEventDetails from './LiveEncodingHeartbeatEventDetails';
|
|
2
|
+
/**
|
|
3
|
+
* @export
|
|
4
|
+
* @class LiveEncodingHeartbeatEvent
|
|
5
|
+
*/
|
|
6
|
+
export declare class LiveEncodingHeartbeatEvent {
|
|
7
|
+
/**
|
|
8
|
+
* Timestamp of the event, returned as UTC expressed in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ (required)
|
|
9
|
+
* @type {Date}
|
|
10
|
+
* @memberof LiveEncodingHeartbeatEvent
|
|
11
|
+
*/
|
|
12
|
+
time?: Date;
|
|
13
|
+
/**
|
|
14
|
+
* @type {LiveEncodingHeartbeatEventDetails}
|
|
15
|
+
* @memberof LiveEncodingHeartbeatEvent
|
|
16
|
+
*/
|
|
17
|
+
details?: LiveEncodingHeartbeatEventDetails;
|
|
18
|
+
constructor(obj?: Partial<LiveEncodingHeartbeatEvent>);
|
|
19
|
+
}
|
|
20
|
+
export default LiveEncodingHeartbeatEvent;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LiveEncodingHeartbeatEvent = void 0;
|
|
4
|
+
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
var LiveEncodingHeartbeatEventDetails_1 = require("./LiveEncodingHeartbeatEventDetails");
|
|
6
|
+
/**
|
|
7
|
+
* @export
|
|
8
|
+
* @class LiveEncodingHeartbeatEvent
|
|
9
|
+
*/
|
|
10
|
+
var LiveEncodingHeartbeatEvent = /** @class */ (function () {
|
|
11
|
+
function LiveEncodingHeartbeatEvent(obj) {
|
|
12
|
+
if (!obj) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
this.time = (0, Mapper_1.map)(obj.time, Date);
|
|
16
|
+
this.details = (0, Mapper_1.map)(obj.details, LiveEncodingHeartbeatEventDetails_1.default);
|
|
17
|
+
}
|
|
18
|
+
return LiveEncodingHeartbeatEvent;
|
|
19
|
+
}());
|
|
20
|
+
exports.LiveEncodingHeartbeatEvent = LiveEncodingHeartbeatEvent;
|
|
21
|
+
exports.default = LiveEncodingHeartbeatEvent;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import LiveEncodingHeartbeatEventType from './LiveEncodingHeartbeatEventType';
|
|
2
|
+
/**
|
|
3
|
+
* @export
|
|
4
|
+
* @class LiveEncodingHeartbeatEventDetails
|
|
5
|
+
*/
|
|
6
|
+
export declare class LiveEncodingHeartbeatEventDetails {
|
|
7
|
+
/**
|
|
8
|
+
* @type {LiveEncodingHeartbeatEventType}
|
|
9
|
+
* @memberof LiveEncodingHeartbeatEventDetails
|
|
10
|
+
*/
|
|
11
|
+
eventType?: LiveEncodingHeartbeatEventType;
|
|
12
|
+
/**
|
|
13
|
+
* Short description of the event
|
|
14
|
+
* @type {string}
|
|
15
|
+
* @memberof LiveEncodingHeartbeatEventDetails
|
|
16
|
+
*/
|
|
17
|
+
message?: string;
|
|
18
|
+
constructor(obj?: Partial<LiveEncodingHeartbeatEventDetails>);
|
|
19
|
+
}
|
|
20
|
+
export default LiveEncodingHeartbeatEventDetails;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LiveEncodingHeartbeatEventDetails = void 0;
|
|
4
|
+
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
/**
|
|
6
|
+
* @export
|
|
7
|
+
* @class LiveEncodingHeartbeatEventDetails
|
|
8
|
+
*/
|
|
9
|
+
var LiveEncodingHeartbeatEventDetails = /** @class */ (function () {
|
|
10
|
+
function LiveEncodingHeartbeatEventDetails(obj) {
|
|
11
|
+
if (!obj) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
this.eventType = (0, Mapper_1.map)(obj.eventType);
|
|
15
|
+
this.message = (0, Mapper_1.map)(obj.message);
|
|
16
|
+
}
|
|
17
|
+
return LiveEncodingHeartbeatEventDetails;
|
|
18
|
+
}());
|
|
19
|
+
exports.LiveEncodingHeartbeatEventDetails = LiveEncodingHeartbeatEventDetails;
|
|
20
|
+
exports.default = LiveEncodingHeartbeatEventDetails;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @export
|
|
3
|
+
* @enum {string}
|
|
4
|
+
*/
|
|
5
|
+
export declare enum LiveEncodingHeartbeatEventType {
|
|
6
|
+
FIRST_CONNECT = "FIRST_CONNECT",
|
|
7
|
+
DISCONNECT = "DISCONNECT",
|
|
8
|
+
RECONNECT = "RECONNECT",
|
|
9
|
+
WARNING = "WARNING",
|
|
10
|
+
ERROR = "ERROR"
|
|
11
|
+
}
|
|
12
|
+
export default LiveEncodingHeartbeatEventType;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LiveEncodingHeartbeatEventType = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @export
|
|
6
|
+
* @enum {string}
|
|
7
|
+
*/
|
|
8
|
+
var LiveEncodingHeartbeatEventType;
|
|
9
|
+
(function (LiveEncodingHeartbeatEventType) {
|
|
10
|
+
LiveEncodingHeartbeatEventType["FIRST_CONNECT"] = "FIRST_CONNECT";
|
|
11
|
+
LiveEncodingHeartbeatEventType["DISCONNECT"] = "DISCONNECT";
|
|
12
|
+
LiveEncodingHeartbeatEventType["RECONNECT"] = "RECONNECT";
|
|
13
|
+
LiveEncodingHeartbeatEventType["WARNING"] = "WARNING";
|
|
14
|
+
LiveEncodingHeartbeatEventType["ERROR"] = "ERROR";
|
|
15
|
+
})(LiveEncodingHeartbeatEventType || (exports.LiveEncodingHeartbeatEventType = LiveEncodingHeartbeatEventType = {}));
|
|
16
|
+
exports.default = LiveEncodingHeartbeatEventType;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import LiveEncodingHeartbeatIngestPoint from './LiveEncodingHeartbeatIngestPoint';
|
|
2
|
+
import LiveEncodingHeartbeatIngestStream from './LiveEncodingHeartbeatIngestStream';
|
|
3
|
+
import LiveEncodingStatus from './LiveEncodingStatus';
|
|
4
|
+
import RtmpUserIngestInfo from './RtmpUserIngestInfo';
|
|
5
|
+
/**
|
|
6
|
+
* Information about the live ingestion status
|
|
7
|
+
* @export
|
|
8
|
+
* @class LiveEncodingHeartbeatIngest
|
|
9
|
+
*/
|
|
10
|
+
export declare class LiveEncodingHeartbeatIngest {
|
|
11
|
+
/**
|
|
12
|
+
* @type {LiveEncodingStatus}
|
|
13
|
+
* @memberof LiveEncodingHeartbeatIngest
|
|
14
|
+
*/
|
|
15
|
+
status?: LiveEncodingStatus;
|
|
16
|
+
/**
|
|
17
|
+
* Indicates whether the ingest is healthy.
|
|
18
|
+
* @type {boolean}
|
|
19
|
+
* @memberof LiveEncodingHeartbeatIngest
|
|
20
|
+
*/
|
|
21
|
+
healthy?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Data about individual ingestPoints within the active live ingest.
|
|
24
|
+
* @type {LiveEncodingHeartbeatIngestPoint[]}
|
|
25
|
+
* @memberof LiveEncodingHeartbeatIngest
|
|
26
|
+
*/
|
|
27
|
+
ingestPoints?: LiveEncodingHeartbeatIngestPoint[];
|
|
28
|
+
/**
|
|
29
|
+
* Data about individual streams within the active live ingest.
|
|
30
|
+
* @type {LiveEncodingHeartbeatIngestStream[]}
|
|
31
|
+
* @memberof LiveEncodingHeartbeatIngest
|
|
32
|
+
*/
|
|
33
|
+
streams?: LiveEncodingHeartbeatIngestStream[];
|
|
34
|
+
/**
|
|
35
|
+
* @type {RtmpUserIngestInfo}
|
|
36
|
+
* @memberof LiveEncodingHeartbeatIngest
|
|
37
|
+
*/
|
|
38
|
+
rtmpUserIngestInfo?: RtmpUserIngestInfo;
|
|
39
|
+
constructor(obj?: Partial<LiveEncodingHeartbeatIngest>);
|
|
40
|
+
}
|
|
41
|
+
export default LiveEncodingHeartbeatIngest;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LiveEncodingHeartbeatIngest = void 0;
|
|
4
|
+
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
var LiveEncodingHeartbeatIngestPoint_1 = require("./LiveEncodingHeartbeatIngestPoint");
|
|
6
|
+
var LiveEncodingHeartbeatIngestStream_1 = require("./LiveEncodingHeartbeatIngestStream");
|
|
7
|
+
var RtmpUserIngestInfo_1 = require("./RtmpUserIngestInfo");
|
|
8
|
+
/**
|
|
9
|
+
* Information about the live ingestion status
|
|
10
|
+
* @export
|
|
11
|
+
* @class LiveEncodingHeartbeatIngest
|
|
12
|
+
*/
|
|
13
|
+
var LiveEncodingHeartbeatIngest = /** @class */ (function () {
|
|
14
|
+
function LiveEncodingHeartbeatIngest(obj) {
|
|
15
|
+
if (!obj) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
this.status = (0, Mapper_1.map)(obj.status);
|
|
19
|
+
this.healthy = (0, Mapper_1.map)(obj.healthy);
|
|
20
|
+
this.ingestPoints = (0, Mapper_1.mapArray)(obj.ingestPoints, LiveEncodingHeartbeatIngestPoint_1.default);
|
|
21
|
+
this.streams = (0, Mapper_1.mapArray)(obj.streams, LiveEncodingHeartbeatIngestStream_1.default);
|
|
22
|
+
this.rtmpUserIngestInfo = (0, Mapper_1.map)(obj.rtmpUserIngestInfo, RtmpUserIngestInfo_1.default);
|
|
23
|
+
}
|
|
24
|
+
return LiveEncodingHeartbeatIngest;
|
|
25
|
+
}());
|
|
26
|
+
exports.LiveEncodingHeartbeatIngest = LiveEncodingHeartbeatIngest;
|
|
27
|
+
exports.default = LiveEncodingHeartbeatIngest;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import InputType from './InputType';
|
|
2
|
+
/**
|
|
3
|
+
* Details about an individual ingestPoint within the live ingest.
|
|
4
|
+
* @export
|
|
5
|
+
* @class LiveEncodingHeartbeatIngestPoint
|
|
6
|
+
*/
|
|
7
|
+
export declare class LiveEncodingHeartbeatIngestPoint {
|
|
8
|
+
/**
|
|
9
|
+
* The name of the ingestPoint of the original Input resource.
|
|
10
|
+
* @type {string}
|
|
11
|
+
* @memberof LiveEncodingHeartbeatIngestPoint
|
|
12
|
+
*/
|
|
13
|
+
name?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Id of the original Input resource. Note that multiple input points (main and backup) can be part of a single Input resource.
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof LiveEncodingHeartbeatIngestPoint
|
|
18
|
+
*/
|
|
19
|
+
inputId?: string;
|
|
20
|
+
/**
|
|
21
|
+
* @type {InputType}
|
|
22
|
+
* @memberof LiveEncodingHeartbeatIngestPoint
|
|
23
|
+
*/
|
|
24
|
+
inputType?: InputType;
|
|
25
|
+
/**
|
|
26
|
+
* Indicates whether this particular input is active.
|
|
27
|
+
* @type {boolean}
|
|
28
|
+
* @memberof LiveEncodingHeartbeatIngestPoint
|
|
29
|
+
*/
|
|
30
|
+
isActive?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Indicates whether this particular input is a backup input.
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof LiveEncodingHeartbeatIngestPoint
|
|
35
|
+
*/
|
|
36
|
+
isBackup?: boolean;
|
|
37
|
+
constructor(obj?: Partial<LiveEncodingHeartbeatIngestPoint>);
|
|
38
|
+
}
|
|
39
|
+
export default LiveEncodingHeartbeatIngestPoint;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LiveEncodingHeartbeatIngestPoint = void 0;
|
|
4
|
+
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
/**
|
|
6
|
+
* Details about an individual ingestPoint within the live ingest.
|
|
7
|
+
* @export
|
|
8
|
+
* @class LiveEncodingHeartbeatIngestPoint
|
|
9
|
+
*/
|
|
10
|
+
var LiveEncodingHeartbeatIngestPoint = /** @class */ (function () {
|
|
11
|
+
function LiveEncodingHeartbeatIngestPoint(obj) {
|
|
12
|
+
if (!obj) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
this.name = (0, Mapper_1.map)(obj.name);
|
|
16
|
+
this.inputId = (0, Mapper_1.map)(obj.inputId);
|
|
17
|
+
this.inputType = (0, Mapper_1.map)(obj.inputType);
|
|
18
|
+
this.isActive = (0, Mapper_1.map)(obj.isActive);
|
|
19
|
+
this.isBackup = (0, Mapper_1.map)(obj.isBackup);
|
|
20
|
+
}
|
|
21
|
+
return LiveEncodingHeartbeatIngestPoint;
|
|
22
|
+
}());
|
|
23
|
+
exports.LiveEncodingHeartbeatIngestPoint = LiveEncodingHeartbeatIngestPoint;
|
|
24
|
+
exports.default = LiveEncodingHeartbeatIngestPoint;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Details about an individual stream within the live ingest.
|
|
3
|
+
* @export
|
|
4
|
+
* @class LiveEncodingHeartbeatIngestStream
|
|
5
|
+
*/
|
|
6
|
+
export declare class LiveEncodingHeartbeatIngestStream {
|
|
7
|
+
/**
|
|
8
|
+
* Unique identifier of the stream.
|
|
9
|
+
* @type {string}
|
|
10
|
+
* @memberof LiveEncodingHeartbeatIngestStream
|
|
11
|
+
*/
|
|
12
|
+
streamId?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Media type for the stream (e.g., \"video\" or \"audio\").
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof LiveEncodingHeartbeatIngestStream
|
|
17
|
+
*/
|
|
18
|
+
mediaType?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Width of the video stream in pixels.
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof LiveEncodingHeartbeatIngestStream
|
|
23
|
+
*/
|
|
24
|
+
width?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Height of the video stream in pixels.
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof LiveEncodingHeartbeatIngestStream
|
|
29
|
+
*/
|
|
30
|
+
height?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Frame rate of the video stream.
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof LiveEncodingHeartbeatIngestStream
|
|
35
|
+
*/
|
|
36
|
+
rate?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Codec of the stream.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof LiveEncodingHeartbeatIngestStream
|
|
41
|
+
*/
|
|
42
|
+
codec?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Aspect ratio of the video.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof LiveEncodingHeartbeatIngestStream
|
|
47
|
+
*/
|
|
48
|
+
aspectRatio?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Container format's bitrate of the stream, in bits per second.
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof LiveEncodingHeartbeatIngestStream
|
|
53
|
+
*/
|
|
54
|
+
bitrate?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Average number of samples/frames read per second.
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof LiveEncodingHeartbeatIngestStream
|
|
59
|
+
*/
|
|
60
|
+
samplesReadPerSecondAvg?: number;
|
|
61
|
+
/**
|
|
62
|
+
* Incoming bitrate measured in bits per second.
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof LiveEncodingHeartbeatIngestStream
|
|
65
|
+
*/
|
|
66
|
+
incomingBitrate?: number;
|
|
67
|
+
/**
|
|
68
|
+
* Largest encountered key-frame interval in milliseconds.
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof LiveEncodingHeartbeatIngestStream
|
|
71
|
+
*/
|
|
72
|
+
keyFrameIntervalMax?: number;
|
|
73
|
+
/**
|
|
74
|
+
* Average key-frame interval in milliseconds.
|
|
75
|
+
* @type {number}
|
|
76
|
+
* @memberof LiveEncodingHeartbeatIngestStream
|
|
77
|
+
*/
|
|
78
|
+
keyFrameIntervalAvg?: number;
|
|
79
|
+
/**
|
|
80
|
+
* Last presentation timestamp (PTS) of the stream.
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof LiveEncodingHeartbeatIngestStream
|
|
83
|
+
*/
|
|
84
|
+
lastTimestamp?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Timescale of lastTimestamp
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @memberof LiveEncodingHeartbeatIngestStream
|
|
89
|
+
*/
|
|
90
|
+
lastTimestampTimescale?: number;
|
|
91
|
+
/**
|
|
92
|
+
* Number of audio channels.
|
|
93
|
+
* @type {number}
|
|
94
|
+
* @memberof LiveEncodingHeartbeatIngestStream
|
|
95
|
+
*/
|
|
96
|
+
numberOfAudioChannels?: number;
|
|
97
|
+
/**
|
|
98
|
+
* Format of the audio channel.
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof LiveEncodingHeartbeatIngestStream
|
|
101
|
+
*/
|
|
102
|
+
audioChannelFormat?: string;
|
|
103
|
+
/**
|
|
104
|
+
* lastArrivalTime timestamp, returned as UTC expressed in ISO 8601 format: YYYY-MM-DDThh:mm:ssZ
|
|
105
|
+
* @type {Date}
|
|
106
|
+
* @memberof LiveEncodingHeartbeatIngestStream
|
|
107
|
+
*/
|
|
108
|
+
lastArrivalTime?: Date;
|
|
109
|
+
/**
|
|
110
|
+
* Indicates whether this particular stream is healthy.
|
|
111
|
+
* @type {boolean}
|
|
112
|
+
* @memberof LiveEncodingHeartbeatIngestStream
|
|
113
|
+
*/
|
|
114
|
+
healthy?: boolean;
|
|
115
|
+
constructor(obj?: Partial<LiveEncodingHeartbeatIngestStream>);
|
|
116
|
+
}
|
|
117
|
+
export default LiveEncodingHeartbeatIngestStream;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LiveEncodingHeartbeatIngestStream = void 0;
|
|
4
|
+
var Mapper_1 = require("../common/Mapper");
|
|
5
|
+
/**
|
|
6
|
+
* Details about an individual stream within the live ingest.
|
|
7
|
+
* @export
|
|
8
|
+
* @class LiveEncodingHeartbeatIngestStream
|
|
9
|
+
*/
|
|
10
|
+
var LiveEncodingHeartbeatIngestStream = /** @class */ (function () {
|
|
11
|
+
function LiveEncodingHeartbeatIngestStream(obj) {
|
|
12
|
+
if (!obj) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
this.streamId = (0, Mapper_1.map)(obj.streamId);
|
|
16
|
+
this.mediaType = (0, Mapper_1.map)(obj.mediaType);
|
|
17
|
+
this.width = (0, Mapper_1.map)(obj.width);
|
|
18
|
+
this.height = (0, Mapper_1.map)(obj.height);
|
|
19
|
+
this.rate = (0, Mapper_1.map)(obj.rate);
|
|
20
|
+
this.codec = (0, Mapper_1.map)(obj.codec);
|
|
21
|
+
this.aspectRatio = (0, Mapper_1.map)(obj.aspectRatio);
|
|
22
|
+
this.bitrate = (0, Mapper_1.map)(obj.bitrate);
|
|
23
|
+
this.samplesReadPerSecondAvg = (0, Mapper_1.map)(obj.samplesReadPerSecondAvg);
|
|
24
|
+
this.incomingBitrate = (0, Mapper_1.map)(obj.incomingBitrate);
|
|
25
|
+
this.keyFrameIntervalMax = (0, Mapper_1.map)(obj.keyFrameIntervalMax);
|
|
26
|
+
this.keyFrameIntervalAvg = (0, Mapper_1.map)(obj.keyFrameIntervalAvg);
|
|
27
|
+
this.lastTimestamp = (0, Mapper_1.map)(obj.lastTimestamp);
|
|
28
|
+
this.lastTimestampTimescale = (0, Mapper_1.map)(obj.lastTimestampTimescale);
|
|
29
|
+
this.numberOfAudioChannels = (0, Mapper_1.map)(obj.numberOfAudioChannels);
|
|
30
|
+
this.audioChannelFormat = (0, Mapper_1.map)(obj.audioChannelFormat);
|
|
31
|
+
this.lastArrivalTime = (0, Mapper_1.map)(obj.lastArrivalTime, Date);
|
|
32
|
+
this.healthy = (0, Mapper_1.map)(obj.healthy);
|
|
33
|
+
}
|
|
34
|
+
return LiveEncodingHeartbeatIngestStream;
|
|
35
|
+
}());
|
|
36
|
+
exports.LiveEncodingHeartbeatIngestStream = LiveEncodingHeartbeatIngestStream;
|
|
37
|
+
exports.default = LiveEncodingHeartbeatIngestStream;
|
|
@@ -16,17 +16,11 @@ export declare class LiveEncodingStatsEventDetails {
|
|
|
16
16
|
*/
|
|
17
17
|
message?: string;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {string
|
|
21
|
-
* @memberof LiveEncodingStatsEventDetails
|
|
22
|
-
*/
|
|
23
|
-
midRollAssetNames?: string[];
|
|
24
|
-
/**
|
|
25
|
-
* Duration in seconds
|
|
26
|
-
* @type {number}
|
|
19
|
+
* Additional event details as key-value pairs
|
|
20
|
+
* @type {string}
|
|
27
21
|
* @memberof LiveEncodingStatsEventDetails
|
|
28
22
|
*/
|
|
29
|
-
|
|
23
|
+
additionalProperties?: string;
|
|
30
24
|
constructor(obj?: Partial<LiveEncodingStatsEventDetails>);
|
|
31
25
|
}
|
|
32
26
|
export default LiveEncodingStatsEventDetails;
|
|
@@ -13,8 +13,7 @@ var LiveEncodingStatsEventDetails = /** @class */ (function () {
|
|
|
13
13
|
}
|
|
14
14
|
this.eventType = (0, Mapper_1.map)(obj.eventType);
|
|
15
15
|
this.message = (0, Mapper_1.map)(obj.message);
|
|
16
|
-
this.
|
|
17
|
-
this.durationInSeconds = (0, Mapper_1.map)(obj.durationInSeconds);
|
|
16
|
+
this.additionalProperties = (0, Mapper_1.map)(obj.additionalProperties);
|
|
18
17
|
}
|
|
19
18
|
return LiveEncodingStatsEventDetails;
|
|
20
19
|
}());
|