@bitmovin/api-sdk 1.218.0 → 1.220.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 +2004 -95
- package/dist/bitmovin-api-sdk.browser.min.js +2 -1
- package/dist/bitmovin-api-sdk.browser.min.js.LICENSE.txt +7 -0
- package/dist/common/RestClient.js +5 -2
- package/dist/models/Av1PerTitleConfiguration.d.ts +6 -0
- package/dist/models/Av1PerTitleConfiguration.js +2 -0
- package/dist/models/H264PerTitleConfiguration.d.ts +6 -0
- package/dist/models/H264PerTitleConfiguration.js +1 -0
- package/dist/models/H265PerTitleConfiguration.d.ts +6 -0
- package/dist/models/H265PerTitleConfiguration.js +1 -0
- package/dist/models/PerTitleConfiguration.d.ts +1 -7
- package/dist/models/PerTitleConfiguration.js +0 -1
- package/dist/models/Vp9PerTitleConfiguration.d.ts +6 -0
- package/dist/models/Vp9PerTitleConfiguration.js +2 -0
- package/package.json +4 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @overview es6-promise - a tiny implementation of Promises/A+.
|
|
3
|
+
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
|
|
4
|
+
* @license Licensed under MIT license
|
|
5
|
+
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
|
|
6
|
+
* @version v4.2.8+1e68dce6
|
|
7
|
+
*/
|
|
@@ -53,10 +53,13 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
53
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
54
|
exports.RestClient = void 0;
|
|
55
55
|
exports.copyAndPrepareBody = copyAndPrepareBody;
|
|
56
|
+
var e6p = require("es6-promise");
|
|
56
57
|
var urljoin = require("url-join");
|
|
58
|
+
var isomorphicFetch = require("isomorphic-fetch");
|
|
57
59
|
var BaseAPI_1 = require("./BaseAPI");
|
|
58
60
|
var NullLogger_1 = require("./NullLogger");
|
|
59
61
|
var BitmovinErrorBuilder_1 = require("./BitmovinErrorBuilder");
|
|
62
|
+
e6p.polyfill();
|
|
60
63
|
var BASE_URL = 'https://api.bitmovin.com/v1';
|
|
61
64
|
function prepareUrlParameterValue(parameterValue) {
|
|
62
65
|
if (parameterValue instanceof Date) {
|
|
@@ -152,7 +155,7 @@ var RestClient = /** @class */ (function () {
|
|
|
152
155
|
this.apiKey = configuration.apiKey;
|
|
153
156
|
this.tenantOrgId = configuration.tenantOrgId;
|
|
154
157
|
this.baseUrl = configuration.baseUrl || BASE_URL;
|
|
155
|
-
this.fetch = configuration.fetch ||
|
|
158
|
+
this.fetch = configuration.fetch || isomorphicFetch;
|
|
156
159
|
this.logger = configuration.logger || new NullLogger_1.default();
|
|
157
160
|
this.headers = configuration.headers;
|
|
158
161
|
this.httpHandler = this.buildHttpHandler();
|
|
@@ -237,7 +240,7 @@ var HeaderHandler = /** @class */ (function (_super) {
|
|
|
237
240
|
var headers = {
|
|
238
241
|
'X-Api-Key': apiKey,
|
|
239
242
|
'X-Api-Client': 'bitmovin-api-sdk-javascript',
|
|
240
|
-
'X-Api-Client-Version': '1.
|
|
243
|
+
'X-Api-Client-Version': '1.220.0',
|
|
241
244
|
'Content-Type': 'application/json'
|
|
242
245
|
};
|
|
243
246
|
if (tenantOrgId) {
|
|
@@ -4,6 +4,12 @@ import PerTitleConfiguration from './PerTitleConfiguration';
|
|
|
4
4
|
* @class Av1PerTitleConfiguration
|
|
5
5
|
*/
|
|
6
6
|
export declare class Av1PerTitleConfiguration extends PerTitleConfiguration {
|
|
7
|
+
/**
|
|
8
|
+
* Desired target quality of the highest representation expressed as CRF value
|
|
9
|
+
* @type {number}
|
|
10
|
+
* @memberof Av1PerTitleConfiguration
|
|
11
|
+
*/
|
|
12
|
+
targetQualityCrf?: number;
|
|
7
13
|
constructor(obj?: Partial<Av1PerTitleConfiguration>);
|
|
8
14
|
}
|
|
9
15
|
export default Av1PerTitleConfiguration;
|
|
@@ -16,6 +16,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.Av1PerTitleConfiguration = void 0;
|
|
19
|
+
var Mapper_1 = require("../common/Mapper");
|
|
19
20
|
var PerTitleConfiguration_1 = require("./PerTitleConfiguration");
|
|
20
21
|
/**
|
|
21
22
|
* @export
|
|
@@ -28,6 +29,7 @@ var Av1PerTitleConfiguration = /** @class */ (function (_super) {
|
|
|
28
29
|
if (!obj) {
|
|
29
30
|
return _this;
|
|
30
31
|
}
|
|
32
|
+
_this.targetQualityCrf = (0, Mapper_1.map)(obj.targetQualityCrf);
|
|
31
33
|
return _this;
|
|
32
34
|
}
|
|
33
35
|
return Av1PerTitleConfiguration;
|
|
@@ -22,6 +22,12 @@ export declare class H264PerTitleConfiguration extends PerTitleConfiguration {
|
|
|
22
22
|
* @memberof H264PerTitleConfiguration
|
|
23
23
|
*/
|
|
24
24
|
codecBufsizeFactor?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Desired target quality of the highest representation expressed as CRF value
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof H264PerTitleConfiguration
|
|
29
|
+
*/
|
|
30
|
+
targetQualityCrf?: number;
|
|
25
31
|
constructor(obj?: Partial<H264PerTitleConfiguration>);
|
|
26
32
|
}
|
|
27
33
|
export default H264PerTitleConfiguration;
|
|
@@ -32,6 +32,7 @@ var H264PerTitleConfiguration = /** @class */ (function (_super) {
|
|
|
32
32
|
_this.codecMinBitrateFactor = (0, Mapper_1.map)(obj.codecMinBitrateFactor);
|
|
33
33
|
_this.codecMaxBitrateFactor = (0, Mapper_1.map)(obj.codecMaxBitrateFactor);
|
|
34
34
|
_this.codecBufsizeFactor = (0, Mapper_1.map)(obj.codecBufsizeFactor);
|
|
35
|
+
_this.targetQualityCrf = (0, Mapper_1.map)(obj.targetQualityCrf);
|
|
35
36
|
return _this;
|
|
36
37
|
}
|
|
37
38
|
return H264PerTitleConfiguration;
|
|
@@ -22,6 +22,12 @@ export declare class H265PerTitleConfiguration extends PerTitleConfiguration {
|
|
|
22
22
|
* @memberof H265PerTitleConfiguration
|
|
23
23
|
*/
|
|
24
24
|
codecBufsizeFactor?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Desired target quality of the highest representation expressed as CRF value
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof H265PerTitleConfiguration
|
|
29
|
+
*/
|
|
30
|
+
targetQualityCrf?: number;
|
|
25
31
|
constructor(obj?: Partial<H265PerTitleConfiguration>);
|
|
26
32
|
}
|
|
27
33
|
export default H265PerTitleConfiguration;
|
|
@@ -32,6 +32,7 @@ var H265PerTitleConfiguration = /** @class */ (function (_super) {
|
|
|
32
32
|
_this.codecMinBitrateFactor = (0, Mapper_1.map)(obj.codecMinBitrateFactor);
|
|
33
33
|
_this.codecMaxBitrateFactor = (0, Mapper_1.map)(obj.codecMaxBitrateFactor);
|
|
34
34
|
_this.codecBufsizeFactor = (0, Mapper_1.map)(obj.codecBufsizeFactor);
|
|
35
|
+
_this.targetQualityCrf = (0, Mapper_1.map)(obj.targetQualityCrf);
|
|
35
36
|
return _this;
|
|
36
37
|
}
|
|
37
38
|
return H265PerTitleConfiguration;
|
|
@@ -24,7 +24,7 @@ export declare class PerTitleConfiguration {
|
|
|
24
24
|
*/
|
|
25
25
|
minBitrateStepSize?: number;
|
|
26
26
|
/**
|
|
27
|
-
* The maximum ratio between the bitrates of neighbouring renditions, e.g., if the first bitrate is 240,000, a maximum ratio of 1.
|
|
27
|
+
* The maximum ratio between the bitrates of neighbouring renditions, e.g., if the first bitrate is 240,000, a maximum ratio of 1.9 will require the next higher bitrate to be at most 456,000
|
|
28
28
|
* @type {number}
|
|
29
29
|
* @memberof PerTitleConfiguration
|
|
30
30
|
*/
|
|
@@ -46,12 +46,6 @@ export declare class PerTitleConfiguration {
|
|
|
46
46
|
* @memberof PerTitleConfiguration
|
|
47
47
|
*/
|
|
48
48
|
fixedResolutionAndBitrateConfiguration?: PerTitleFixedResolutionAndBitrateConfiguration;
|
|
49
|
-
/**
|
|
50
|
-
* Desired target quality of the highest representation expressed as CRF value
|
|
51
|
-
* @type {number}
|
|
52
|
-
* @memberof PerTitleConfiguration
|
|
53
|
-
*/
|
|
54
|
-
targetQualityCrf?: number;
|
|
55
49
|
/**
|
|
56
50
|
* This factor influences the resolution selection of the per-title algorithm. The default value is 0.0. negative values will lead to results where the algorithm will choose lower resolutions for given bitrates. A positive value will result in higher resolutions to be selected. The range of the factor is -5.0 to +5.0. Please note that changing this factor might also lead to slightly different bitrate selection by the algorithm.
|
|
57
51
|
* @type {number}
|
|
@@ -20,7 +20,6 @@ var PerTitleConfiguration = /** @class */ (function () {
|
|
|
20
20
|
this.autoRepresentations = (0, Mapper_1.map)(obj.autoRepresentations, AutoRepresentation_1.default);
|
|
21
21
|
this.complexityFactor = (0, Mapper_1.map)(obj.complexityFactor);
|
|
22
22
|
this.fixedResolutionAndBitrateConfiguration = (0, Mapper_1.map)(obj.fixedResolutionAndBitrateConfiguration, PerTitleFixedResolutionAndBitrateConfiguration_1.default);
|
|
23
|
-
this.targetQualityCrf = (0, Mapper_1.map)(obj.targetQualityCrf);
|
|
24
23
|
this.resolutionScaleFactor = (0, Mapper_1.map)(obj.resolutionScaleFactor);
|
|
25
24
|
}
|
|
26
25
|
return PerTitleConfiguration;
|
|
@@ -4,6 +4,12 @@ import PerTitleConfiguration from './PerTitleConfiguration';
|
|
|
4
4
|
* @class Vp9PerTitleConfiguration
|
|
5
5
|
*/
|
|
6
6
|
export declare class Vp9PerTitleConfiguration extends PerTitleConfiguration {
|
|
7
|
+
/**
|
|
8
|
+
* Desired target quality of the highest representation expressed as CRF value
|
|
9
|
+
* @type {number}
|
|
10
|
+
* @memberof Vp9PerTitleConfiguration
|
|
11
|
+
*/
|
|
12
|
+
targetQualityCrf?: number;
|
|
7
13
|
constructor(obj?: Partial<Vp9PerTitleConfiguration>);
|
|
8
14
|
}
|
|
9
15
|
export default Vp9PerTitleConfiguration;
|
|
@@ -16,6 +16,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.Vp9PerTitleConfiguration = void 0;
|
|
19
|
+
var Mapper_1 = require("../common/Mapper");
|
|
19
20
|
var PerTitleConfiguration_1 = require("./PerTitleConfiguration");
|
|
20
21
|
/**
|
|
21
22
|
* @export
|
|
@@ -28,6 +29,7 @@ var Vp9PerTitleConfiguration = /** @class */ (function (_super) {
|
|
|
28
29
|
if (!obj) {
|
|
29
30
|
return _this;
|
|
30
31
|
}
|
|
32
|
+
_this.targetQualityCrf = (0, Mapper_1.map)(obj.targetQualityCrf);
|
|
31
33
|
return _this;
|
|
32
34
|
}
|
|
33
35
|
return Vp9PerTitleConfiguration;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitmovin/api-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.220.0",
|
|
4
4
|
"description": "Bitmovin JS/TS API SDK",
|
|
5
5
|
"author": "Bitmovin Inc",
|
|
6
6
|
"keywords": [
|
|
@@ -24,12 +24,15 @@
|
|
|
24
24
|
"format-check": "prettier --list-different \"./src/**/*.{ts,tsx,scss}\""
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
+
"es6-promise": "^4.2.5",
|
|
28
|
+
"isomorphic-fetch": ">=3.0.0",
|
|
27
29
|
"url-join": "^4.0.0"
|
|
28
30
|
},
|
|
29
31
|
"files": [
|
|
30
32
|
"dist"
|
|
31
33
|
],
|
|
32
34
|
"devDependencies": {
|
|
35
|
+
"@types/isomorphic-fetch": ">=0.0.35",
|
|
33
36
|
"@types/node": "^20.8.9",
|
|
34
37
|
"ts-loader": "^9.2.8",
|
|
35
38
|
"cross-env": "^5.2.0",
|