@bitmovin/api-sdk 1.192.0 → 1.194.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 +219 -1
- package/dist/bitmovin-api-sdk.browser.min.js +1 -1
- package/dist/common/RestClient.js +1 -1
- package/dist/encoding/configurations/audio/AudioApi.d.ts +2 -0
- package/dist/encoding/configurations/audio/AudioApi.js +2 -0
- package/dist/encoding/configurations/audio/passthrough/PassthroughApi.d.ts +43 -0
- package/dist/encoding/configurations/audio/passthrough/PassthroughApi.js +94 -0
- package/dist/encoding/configurations/audio/passthrough/PassthroughAudioConfigurationListQueryParams.d.ts +39 -0
- package/dist/encoding/configurations/audio/passthrough/PassthroughAudioConfigurationListQueryParams.js +37 -0
- package/dist/models/AzureCloudRegion.d.ts +3 -1
- package/dist/models/AzureCloudRegion.js +2 -0
- package/dist/models/CloudRegion.d.ts +4 -0
- package/dist/models/CloudRegion.js +4 -0
- package/dist/models/CodecConfigType.d.ts +1 -0
- package/dist/models/CodecConfigType.js +1 -0
- package/dist/models/CodecConfiguration.d.ts +2 -1
- package/dist/models/CodecConfiguration.js +1 -0
- package/dist/models/PassthroughAudioConfiguration.d.ts +16 -0
- package/dist/models/PassthroughAudioConfiguration.js +43 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -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.194.0',
|
|
244
244
|
'Content-Type': 'application/json'
|
|
245
245
|
};
|
|
246
246
|
if (tenantOrgId) {
|
|
@@ -7,6 +7,7 @@ import DtsxApi from './dtsx/DtsxApi';
|
|
|
7
7
|
import DolbyAtmosApi from './dolbyAtmos/DolbyAtmosApi';
|
|
8
8
|
import HeAacV1Api from './heAacV1/HeAacV1Api';
|
|
9
9
|
import HeAacV2Api from './heAacV2/HeAacV2Api';
|
|
10
|
+
import PassthroughApi from './passthrough/PassthroughApi';
|
|
10
11
|
import VorbisApi from './vorbis/VorbisApi';
|
|
11
12
|
import OpusApi from './opus/OpusApi';
|
|
12
13
|
import PcmApi from './pcm/PcmApi';
|
|
@@ -30,6 +31,7 @@ export default class AudioApi extends BaseAPI {
|
|
|
30
31
|
dolbyAtmos: DolbyAtmosApi;
|
|
31
32
|
heAacV1: HeAacV1Api;
|
|
32
33
|
heAacV2: HeAacV2Api;
|
|
34
|
+
passthrough: PassthroughApi;
|
|
33
35
|
vorbis: VorbisApi;
|
|
34
36
|
opus: OpusApi;
|
|
35
37
|
pcm: PcmApi;
|
|
@@ -23,6 +23,7 @@ var DtsxApi_1 = require("./dtsx/DtsxApi");
|
|
|
23
23
|
var DolbyAtmosApi_1 = require("./dolbyAtmos/DolbyAtmosApi");
|
|
24
24
|
var HeAacV1Api_1 = require("./heAacV1/HeAacV1Api");
|
|
25
25
|
var HeAacV2Api_1 = require("./heAacV2/HeAacV2Api");
|
|
26
|
+
var PassthroughApi_1 = require("./passthrough/PassthroughApi");
|
|
26
27
|
var VorbisApi_1 = require("./vorbis/VorbisApi");
|
|
27
28
|
var OpusApi_1 = require("./opus/OpusApi");
|
|
28
29
|
var PcmApi_1 = require("./pcm/PcmApi");
|
|
@@ -49,6 +50,7 @@ var AudioApi = /** @class */ (function (_super) {
|
|
|
49
50
|
_this.dolbyAtmos = new DolbyAtmosApi_1.default(configuration);
|
|
50
51
|
_this.heAacV1 = new HeAacV1Api_1.default(configuration);
|
|
51
52
|
_this.heAacV2 = new HeAacV2Api_1.default(configuration);
|
|
53
|
+
_this.passthrough = new PassthroughApi_1.default(configuration);
|
|
52
54
|
_this.vorbis = new VorbisApi_1.default(configuration);
|
|
53
55
|
_this.opus = new OpusApi_1.default(configuration);
|
|
54
56
|
_this.pcm = new PcmApi_1.default(configuration);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { BaseAPI } from '../../../../common/BaseAPI';
|
|
2
|
+
import Configuration from '../../../../common/Configuration';
|
|
3
|
+
import BitmovinResponse from '../../../../models/BitmovinResponse';
|
|
4
|
+
import PassthroughAudioConfiguration from '../../../../models/PassthroughAudioConfiguration';
|
|
5
|
+
import PaginationResponse from '../../../../models/PaginationResponse';
|
|
6
|
+
import { PassthroughAudioConfigurationListQueryParams, PassthroughAudioConfigurationListQueryParamsBuilder } from './PassthroughAudioConfigurationListQueryParams';
|
|
7
|
+
/**
|
|
8
|
+
* PassthroughApi - object-oriented interface
|
|
9
|
+
* @export
|
|
10
|
+
* @class PassthroughApi
|
|
11
|
+
* @extends {BaseAPI}
|
|
12
|
+
*/
|
|
13
|
+
export default class PassthroughApi extends BaseAPI {
|
|
14
|
+
constructor(configuration: Configuration);
|
|
15
|
+
/**
|
|
16
|
+
* @summary Create Audio Passthrough Configuration
|
|
17
|
+
* @param {PassthroughAudioConfiguration} passthroughAudioConfiguration The Audio Passthrough Configuration to be created
|
|
18
|
+
* @throws {BitmovinError}
|
|
19
|
+
* @memberof PassthroughApi
|
|
20
|
+
*/
|
|
21
|
+
create(passthroughAudioConfiguration?: PassthroughAudioConfiguration): Promise<PassthroughAudioConfiguration>;
|
|
22
|
+
/**
|
|
23
|
+
* @summary Delete Audio Passthrough Codec Configuration
|
|
24
|
+
* @param {string} configurationId Id of the audio configuration
|
|
25
|
+
* @throws {BitmovinError}
|
|
26
|
+
* @memberof PassthroughApi
|
|
27
|
+
*/
|
|
28
|
+
delete(configurationId: string): Promise<BitmovinResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* @summary Audio Passthrough Configuration Details
|
|
31
|
+
* @param {string} configurationId Id of the audio configuration
|
|
32
|
+
* @throws {BitmovinError}
|
|
33
|
+
* @memberof PassthroughApi
|
|
34
|
+
*/
|
|
35
|
+
get(configurationId: string): Promise<PassthroughAudioConfiguration>;
|
|
36
|
+
/**
|
|
37
|
+
* @summary List Audio Passthrough Configurations
|
|
38
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
39
|
+
* @throws {BitmovinError}
|
|
40
|
+
* @memberof PassthroughApi
|
|
41
|
+
*/
|
|
42
|
+
list(queryParameters?: PassthroughAudioConfigurationListQueryParams | ((q: PassthroughAudioConfigurationListQueryParamsBuilder) => PassthroughAudioConfigurationListQueryParamsBuilder)): Promise<PaginationResponse<PassthroughAudioConfiguration>>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
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 BitmovinResponse_1 = require("../../../../models/BitmovinResponse");
|
|
21
|
+
var PassthroughAudioConfiguration_1 = require("../../../../models/PassthroughAudioConfiguration");
|
|
22
|
+
var PaginationResponse_1 = require("../../../../models/PaginationResponse");
|
|
23
|
+
var PassthroughAudioConfigurationListQueryParams_1 = require("./PassthroughAudioConfigurationListQueryParams");
|
|
24
|
+
/**
|
|
25
|
+
* PassthroughApi - object-oriented interface
|
|
26
|
+
* @export
|
|
27
|
+
* @class PassthroughApi
|
|
28
|
+
* @extends {BaseAPI}
|
|
29
|
+
*/
|
|
30
|
+
var PassthroughApi = /** @class */ (function (_super) {
|
|
31
|
+
__extends(PassthroughApi, _super);
|
|
32
|
+
function PassthroughApi(configuration) {
|
|
33
|
+
return _super.call(this, configuration) || this;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* @summary Create Audio Passthrough Configuration
|
|
37
|
+
* @param {PassthroughAudioConfiguration} passthroughAudioConfiguration The Audio Passthrough Configuration to be created
|
|
38
|
+
* @throws {BitmovinError}
|
|
39
|
+
* @memberof PassthroughApi
|
|
40
|
+
*/
|
|
41
|
+
PassthroughApi.prototype.create = function (passthroughAudioConfiguration) {
|
|
42
|
+
return this.restClient.post('/encoding/configurations/audio/passthrough', {}, passthroughAudioConfiguration).then(function (response) {
|
|
43
|
+
return (0, Mapper_1.map)(response, PassthroughAudioConfiguration_1.default);
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* @summary Delete Audio Passthrough Codec Configuration
|
|
48
|
+
* @param {string} configurationId Id of the audio configuration
|
|
49
|
+
* @throws {BitmovinError}
|
|
50
|
+
* @memberof PassthroughApi
|
|
51
|
+
*/
|
|
52
|
+
PassthroughApi.prototype.delete = function (configurationId) {
|
|
53
|
+
var pathParamMap = {
|
|
54
|
+
configuration_id: configurationId
|
|
55
|
+
};
|
|
56
|
+
return this.restClient.delete('/encoding/configurations/audio/passthrough/{configuration_id}', pathParamMap).then(function (response) {
|
|
57
|
+
return (0, Mapper_1.map)(response, BitmovinResponse_1.default);
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* @summary Audio Passthrough Configuration Details
|
|
62
|
+
* @param {string} configurationId Id of the audio configuration
|
|
63
|
+
* @throws {BitmovinError}
|
|
64
|
+
* @memberof PassthroughApi
|
|
65
|
+
*/
|
|
66
|
+
PassthroughApi.prototype.get = function (configurationId) {
|
|
67
|
+
var pathParamMap = {
|
|
68
|
+
configuration_id: configurationId
|
|
69
|
+
};
|
|
70
|
+
return this.restClient.get('/encoding/configurations/audio/passthrough/{configuration_id}', pathParamMap).then(function (response) {
|
|
71
|
+
return (0, Mapper_1.map)(response, PassthroughAudioConfiguration_1.default);
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* @summary List Audio Passthrough Configurations
|
|
76
|
+
* @param {*} [queryParameters] query parameters for filtering, sorting and pagination
|
|
77
|
+
* @throws {BitmovinError}
|
|
78
|
+
* @memberof PassthroughApi
|
|
79
|
+
*/
|
|
80
|
+
PassthroughApi.prototype.list = function (queryParameters) {
|
|
81
|
+
var queryParams = {};
|
|
82
|
+
if (typeof queryParameters === 'function') {
|
|
83
|
+
queryParams = queryParameters(new PassthroughAudioConfigurationListQueryParams_1.PassthroughAudioConfigurationListQueryParamsBuilder()).buildQueryParams();
|
|
84
|
+
}
|
|
85
|
+
else if (queryParameters) {
|
|
86
|
+
queryParams = queryParameters;
|
|
87
|
+
}
|
|
88
|
+
return this.restClient.get('/encoding/configurations/audio/passthrough', {}, queryParams).then(function (response) {
|
|
89
|
+
return new PaginationResponse_1.default(response, PassthroughAudioConfiguration_1.default);
|
|
90
|
+
});
|
|
91
|
+
};
|
|
92
|
+
return PassthroughApi;
|
|
93
|
+
}(BaseAPI_1.BaseAPI));
|
|
94
|
+
exports.default = PassthroughApi;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface PassthroughAudioConfigurationListQueryParams {
|
|
2
|
+
/**
|
|
3
|
+
* Index of the first item to return, starting at 0. Default is 0
|
|
4
|
+
* @type {number}
|
|
5
|
+
* @memberof PassthroughAudioConfigurationListQueryParams
|
|
6
|
+
*/
|
|
7
|
+
offset?: number | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Maximum number of items to return. Default is 25, maximum is 100
|
|
10
|
+
* @type {number}
|
|
11
|
+
* @memberof PassthroughAudioConfigurationListQueryParams
|
|
12
|
+
*/
|
|
13
|
+
limit?: number | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Filter configuration by name
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof PassthroughAudioConfigurationListQueryParams
|
|
18
|
+
*/
|
|
19
|
+
name?: string | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare class PassthroughAudioConfigurationListQueryParamsBuilder {
|
|
22
|
+
private internalParams;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
26
|
+
*/
|
|
27
|
+
offset(offset: number): this;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @param limit Maximum number of items to return. Default is 25, maximum is 100
|
|
31
|
+
*/
|
|
32
|
+
limit(limit: number): this;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @param name Filter configuration by name
|
|
36
|
+
*/
|
|
37
|
+
name(name: string): this;
|
|
38
|
+
buildQueryParams(): PassthroughAudioConfigurationListQueryParams;
|
|
39
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PassthroughAudioConfigurationListQueryParamsBuilder = void 0;
|
|
4
|
+
var PassthroughAudioConfigurationListQueryParamsBuilder = /** @class */ (function () {
|
|
5
|
+
function PassthroughAudioConfigurationListQueryParamsBuilder() {
|
|
6
|
+
this.internalParams = {};
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @param offset Index of the first item to return, starting at 0. Default is 0
|
|
11
|
+
*/
|
|
12
|
+
PassthroughAudioConfigurationListQueryParamsBuilder.prototype.offset = function (offset) {
|
|
13
|
+
this.internalParams.offset = offset;
|
|
14
|
+
return this;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @param limit Maximum number of items to return. Default is 25, maximum is 100
|
|
19
|
+
*/
|
|
20
|
+
PassthroughAudioConfigurationListQueryParamsBuilder.prototype.limit = function (limit) {
|
|
21
|
+
this.internalParams.limit = limit;
|
|
22
|
+
return this;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @param name Filter configuration by name
|
|
27
|
+
*/
|
|
28
|
+
PassthroughAudioConfigurationListQueryParamsBuilder.prototype.name = function (name) {
|
|
29
|
+
this.internalParams.name = name;
|
|
30
|
+
return this;
|
|
31
|
+
};
|
|
32
|
+
PassthroughAudioConfigurationListQueryParamsBuilder.prototype.buildQueryParams = function () {
|
|
33
|
+
return this.internalParams;
|
|
34
|
+
};
|
|
35
|
+
return PassthroughAudioConfigurationListQueryParamsBuilder;
|
|
36
|
+
}());
|
|
37
|
+
exports.PassthroughAudioConfigurationListQueryParamsBuilder = PassthroughAudioConfigurationListQueryParamsBuilder;
|
|
@@ -24,6 +24,8 @@ export declare enum AzureCloudRegion {
|
|
|
24
24
|
US_EAST2 = "US_EAST2",
|
|
25
25
|
US_WEST = "US_WEST",
|
|
26
26
|
US_WEST2 = "US_WEST2",
|
|
27
|
-
US_SOUTH_CENTRAL = "US_SOUTH_CENTRAL"
|
|
27
|
+
US_SOUTH_CENTRAL = "US_SOUTH_CENTRAL",
|
|
28
|
+
US_NORTH_CENTRAL = "US_NORTH_CENTRAL",
|
|
29
|
+
UK_SOUTH = "UK_SOUTH"
|
|
28
30
|
}
|
|
29
31
|
export default AzureCloudRegion;
|
|
@@ -29,5 +29,7 @@ var AzureCloudRegion;
|
|
|
29
29
|
AzureCloudRegion["US_WEST"] = "US_WEST";
|
|
30
30
|
AzureCloudRegion["US_WEST2"] = "US_WEST2";
|
|
31
31
|
AzureCloudRegion["US_SOUTH_CENTRAL"] = "US_SOUTH_CENTRAL";
|
|
32
|
+
AzureCloudRegion["US_NORTH_CENTRAL"] = "US_NORTH_CENTRAL";
|
|
33
|
+
AzureCloudRegion["UK_SOUTH"] = "UK_SOUTH";
|
|
32
34
|
})(AzureCloudRegion || (exports.AzureCloudRegion = AzureCloudRegion = {}));
|
|
33
35
|
exports.default = AzureCloudRegion;
|
|
@@ -59,10 +59,14 @@ export declare enum CloudRegion {
|
|
|
59
59
|
AZURE_US_WEST = "AZURE_US_WEST",
|
|
60
60
|
AZURE_US_WEST2 = "AZURE_US_WEST2",
|
|
61
61
|
AZURE_US_SOUTH_CENTRAL = "AZURE_US_SOUTH_CENTRAL",
|
|
62
|
+
AZURE_US_NORTH_CENTRAL = "AZURE_US_NORTH_CENTRAL",
|
|
63
|
+
AZURE_UK_SOUTH = "AZURE_UK_SOUTH",
|
|
62
64
|
AKAMAI_BR_GRU = "AKAMAI_BR_GRU",
|
|
63
65
|
AKAMAI_FR_PAR = "AKAMAI_FR_PAR",
|
|
64
66
|
AKAMAI_JP_OSA = "AKAMAI_JP_OSA",
|
|
65
67
|
AKAMAI_US_SEA = "AKAMAI_US_SEA",
|
|
68
|
+
OCI_EU_FRANKFURT_1 = "OCI_EU_FRANKFURT_1",
|
|
69
|
+
OCI_US_ASHBURN_1 = "OCI_US_ASHBURN_1",
|
|
66
70
|
NORTH_AMERICA = "NORTH_AMERICA",
|
|
67
71
|
SOUTH_AMERICA = "SOUTH_AMERICA",
|
|
68
72
|
EUROPE = "EUROPE",
|
|
@@ -63,10 +63,14 @@ var CloudRegion;
|
|
|
63
63
|
CloudRegion["AZURE_US_WEST"] = "AZURE_US_WEST";
|
|
64
64
|
CloudRegion["AZURE_US_WEST2"] = "AZURE_US_WEST2";
|
|
65
65
|
CloudRegion["AZURE_US_SOUTH_CENTRAL"] = "AZURE_US_SOUTH_CENTRAL";
|
|
66
|
+
CloudRegion["AZURE_US_NORTH_CENTRAL"] = "AZURE_US_NORTH_CENTRAL";
|
|
67
|
+
CloudRegion["AZURE_UK_SOUTH"] = "AZURE_UK_SOUTH";
|
|
66
68
|
CloudRegion["AKAMAI_BR_GRU"] = "AKAMAI_BR_GRU";
|
|
67
69
|
CloudRegion["AKAMAI_FR_PAR"] = "AKAMAI_FR_PAR";
|
|
68
70
|
CloudRegion["AKAMAI_JP_OSA"] = "AKAMAI_JP_OSA";
|
|
69
71
|
CloudRegion["AKAMAI_US_SEA"] = "AKAMAI_US_SEA";
|
|
72
|
+
CloudRegion["OCI_EU_FRANKFURT_1"] = "OCI_EU_FRANKFURT_1";
|
|
73
|
+
CloudRegion["OCI_US_ASHBURN_1"] = "OCI_US_ASHBURN_1";
|
|
70
74
|
CloudRegion["NORTH_AMERICA"] = "NORTH_AMERICA";
|
|
71
75
|
CloudRegion["SOUTH_AMERICA"] = "SOUTH_AMERICA";
|
|
72
76
|
CloudRegion["EUROPE"] = "EUROPE";
|
|
@@ -11,6 +11,7 @@ var CodecConfigType;
|
|
|
11
11
|
CodecConfigType["DTS"] = "DTS";
|
|
12
12
|
CodecConfigType["DTSX"] = "DTSX";
|
|
13
13
|
CodecConfigType["DTS_PASSTHROUGH"] = "DTS_PASSTHROUGH";
|
|
14
|
+
CodecConfigType["AUDIO_PASSTHROUGH"] = "AUDIO_PASSTHROUGH";
|
|
14
15
|
CodecConfigType["HE_AAC_V1"] = "HE_AAC_V1";
|
|
15
16
|
CodecConfigType["HE_AAC_V2"] = "HE_AAC_V2";
|
|
16
17
|
CodecConfigType["H264"] = "H264";
|
|
@@ -21,12 +21,13 @@ import MjpegVideoConfiguration from './MjpegVideoConfiguration';
|
|
|
21
21
|
import Mp2AudioConfiguration from './Mp2AudioConfiguration';
|
|
22
22
|
import Mp3AudioConfiguration from './Mp3AudioConfiguration';
|
|
23
23
|
import OpusAudioConfiguration from './OpusAudioConfiguration';
|
|
24
|
+
import PassthroughAudioConfiguration from './PassthroughAudioConfiguration';
|
|
24
25
|
import PcmAudioConfiguration from './PcmAudioConfiguration';
|
|
25
26
|
import VorbisAudioConfiguration from './VorbisAudioConfiguration';
|
|
26
27
|
import Vp8VideoConfiguration from './Vp8VideoConfiguration';
|
|
27
28
|
import Vp9VideoConfiguration from './Vp9VideoConfiguration';
|
|
28
29
|
import WebVttConfiguration from './WebVttConfiguration';
|
|
29
|
-
export type CodecConfigurationUnion = AacAudioConfiguration | DtsPassthroughAudioConfiguration | DtsAudioConfiguration | DtsXAudioConfiguration | DvbSubtitleConfiguration | HeAacV1AudioConfiguration | HeAacV2AudioConfiguration | H264VideoConfiguration | H265VideoConfiguration | Vp9VideoConfiguration | Vp8VideoConfiguration | Mp2AudioConfiguration | Mp3AudioConfiguration | Ac3AudioConfiguration | DolbyDigitalAudioConfiguration | Eac3AudioConfiguration | DolbyDigitalPlusAudioConfiguration | OpusAudioConfiguration | VorbisAudioConfiguration | MjpegVideoConfiguration | Av1VideoConfiguration | DolbyAtmosAudioConfiguration | H262VideoConfiguration | PcmAudioConfiguration | WebVttConfiguration | ImscConfiguration;
|
|
30
|
+
export type CodecConfigurationUnion = AacAudioConfiguration | PassthroughAudioConfiguration | DtsPassthroughAudioConfiguration | DtsAudioConfiguration | DtsXAudioConfiguration | DvbSubtitleConfiguration | HeAacV1AudioConfiguration | HeAacV2AudioConfiguration | H264VideoConfiguration | H265VideoConfiguration | Vp9VideoConfiguration | Vp8VideoConfiguration | Mp2AudioConfiguration | Mp3AudioConfiguration | Ac3AudioConfiguration | DolbyDigitalAudioConfiguration | Eac3AudioConfiguration | DolbyDigitalPlusAudioConfiguration | OpusAudioConfiguration | VorbisAudioConfiguration | MjpegVideoConfiguration | Av1VideoConfiguration | DolbyAtmosAudioConfiguration | H262VideoConfiguration | PcmAudioConfiguration | WebVttConfiguration | ImscConfiguration;
|
|
30
31
|
/**
|
|
31
32
|
* @export
|
|
32
33
|
* @class CodecConfiguration
|
|
@@ -33,6 +33,7 @@ var CodecConfiguration = /** @class */ (function (_super) {
|
|
|
33
33
|
CodecConfiguration._discriminatorName = 'type';
|
|
34
34
|
CodecConfiguration._discriminatorMapping = {
|
|
35
35
|
AAC: 'AacAudioConfiguration',
|
|
36
|
+
AUDIO_PASSTHROUGH: 'PassthroughAudioConfiguration',
|
|
36
37
|
DTS_PASSTHROUGH: 'DtsPassthroughAudioConfiguration',
|
|
37
38
|
DTS: 'DtsAudioConfiguration',
|
|
38
39
|
DTSX: 'DtsXAudioConfiguration',
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import CodecConfigType from './CodecConfigType';
|
|
2
|
+
import CodecConfiguration from './CodecConfiguration';
|
|
3
|
+
/**
|
|
4
|
+
* @export
|
|
5
|
+
* @class PassthroughAudioConfiguration
|
|
6
|
+
*/
|
|
7
|
+
export declare class PassthroughAudioConfiguration extends CodecConfiguration {
|
|
8
|
+
/**
|
|
9
|
+
* Discriminator property for CodecConfiguration
|
|
10
|
+
* @type {string}
|
|
11
|
+
* @memberof PassthroughAudioConfiguration
|
|
12
|
+
*/
|
|
13
|
+
readonly type: CodecConfigType;
|
|
14
|
+
constructor(obj?: Partial<PassthroughAudioConfiguration>);
|
|
15
|
+
}
|
|
16
|
+
export default PassthroughAudioConfiguration;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
exports.PassthroughAudioConfiguration = void 0;
|
|
19
|
+
var CodecConfigType_1 = require("./CodecConfigType");
|
|
20
|
+
var CodecConfiguration_1 = require("./CodecConfiguration");
|
|
21
|
+
/**
|
|
22
|
+
* @export
|
|
23
|
+
* @class PassthroughAudioConfiguration
|
|
24
|
+
*/
|
|
25
|
+
var PassthroughAudioConfiguration = /** @class */ (function (_super) {
|
|
26
|
+
__extends(PassthroughAudioConfiguration, _super);
|
|
27
|
+
function PassthroughAudioConfiguration(obj) {
|
|
28
|
+
var _this = _super.call(this, obj) || this;
|
|
29
|
+
/**
|
|
30
|
+
* Discriminator property for CodecConfiguration
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof PassthroughAudioConfiguration
|
|
33
|
+
*/
|
|
34
|
+
_this.type = CodecConfigType_1.default.AUDIO_PASSTHROUGH;
|
|
35
|
+
if (!obj) {
|
|
36
|
+
return _this;
|
|
37
|
+
}
|
|
38
|
+
return _this;
|
|
39
|
+
}
|
|
40
|
+
return PassthroughAudioConfiguration;
|
|
41
|
+
}(CodecConfiguration_1.default));
|
|
42
|
+
exports.PassthroughAudioConfiguration = PassthroughAudioConfiguration;
|
|
43
|
+
exports.default = PassthroughAudioConfiguration;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -528,6 +528,7 @@ export * from './PackedAudioMuxingInformation';
|
|
|
528
528
|
export * from './PaddingDurationUnit';
|
|
529
529
|
export * from './PaddingSequence';
|
|
530
530
|
export * from './PaginationResponse';
|
|
531
|
+
export * from './PassthroughAudioConfiguration';
|
|
531
532
|
export * from './PassthroughMode';
|
|
532
533
|
export * from './PcmAudioConfiguration';
|
|
533
534
|
export * from './PcmChannelLayout';
|
package/dist/models/index.js
CHANGED
|
@@ -544,6 +544,7 @@ __exportStar(require("./PackedAudioMuxingInformation"), exports);
|
|
|
544
544
|
__exportStar(require("./PaddingDurationUnit"), exports);
|
|
545
545
|
__exportStar(require("./PaddingSequence"), exports);
|
|
546
546
|
__exportStar(require("./PaginationResponse"), exports);
|
|
547
|
+
__exportStar(require("./PassthroughAudioConfiguration"), exports);
|
|
547
548
|
__exportStar(require("./PassthroughMode"), exports);
|
|
548
549
|
__exportStar(require("./PcmAudioConfiguration"), exports);
|
|
549
550
|
__exportStar(require("./PcmChannelLayout"), exports);
|