@bitmovin/api-sdk 1.170.0 → 1.171.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 +38 -4
- package/dist/bitmovin-api-sdk.browser.min.js +1 -1
- package/dist/common/RestClient.js +1 -1
- package/dist/models/NexGuardFileMarker.d.ts +1 -1
- package/dist/models/StreamsLiveResponse.d.ts +7 -0
- package/dist/models/StreamsLiveResponse.js +1 -0
- package/dist/models/StreamsTrimmingStatus.d.ts +12 -0
- package/dist/models/StreamsTrimmingStatus.js +16 -0
- package/dist/models/StreamsVideoQuality.d.ts +1 -2
- package/dist/models/StreamsVideoQuality.js +0 -1
- package/dist/models/StreamsVideoResponse.d.ts +7 -0
- package/dist/models/StreamsVideoResponse.js +1 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5987,7 +5987,7 @@ var HeaderHandler = /** @class */ (function (_super) {
|
|
|
5987
5987
|
var headers = {
|
|
5988
5988
|
'X-Api-Key': apiKey,
|
|
5989
5989
|
'X-Api-Client': 'bitmovin-api-sdk-javascript',
|
|
5990
|
-
'X-Api-Client-Version': '1.
|
|
5990
|
+
'X-Api-Client-Version': '1.171.0',
|
|
5991
5991
|
'Content-Type': 'application/json'
|
|
5992
5992
|
};
|
|
5993
5993
|
if (tenantOrgId) {
|
|
@@ -82471,6 +82471,7 @@ var StreamsLiveResponse = /** @class */ (function () {
|
|
|
82471
82471
|
this.posterUrl = (0, Mapper_1.map)(obj.posterUrl);
|
|
82472
82472
|
this.adConfig = (0, Mapper_1.map)(obj.adConfig, StreamsAdConfigResponse_1.default);
|
|
82473
82473
|
this.contentProtection = (0, Mapper_1.map)(obj.contentProtection, StreamsContentProtectionResponse_1.default);
|
|
82474
|
+
this.trimming = (0, Mapper_1.map)(obj.trimming);
|
|
82474
82475
|
}
|
|
82475
82476
|
return StreamsLiveResponse;
|
|
82476
82477
|
}());
|
|
@@ -82619,6 +82620,33 @@ exports.StreamsStyleConfigResponse = StreamsStyleConfigResponse;
|
|
|
82619
82620
|
exports["default"] = StreamsStyleConfigResponse;
|
|
82620
82621
|
|
|
82621
82622
|
|
|
82623
|
+
/***/ }),
|
|
82624
|
+
|
|
82625
|
+
/***/ "./models/StreamsTrimmingStatus.ts":
|
|
82626
|
+
/*!*****************************************!*\
|
|
82627
|
+
!*** ./models/StreamsTrimmingStatus.ts ***!
|
|
82628
|
+
\*****************************************/
|
|
82629
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
82630
|
+
|
|
82631
|
+
"use strict";
|
|
82632
|
+
|
|
82633
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
82634
|
+
exports.StreamsTrimmingStatus = void 0;
|
|
82635
|
+
/**
|
|
82636
|
+
* @export
|
|
82637
|
+
* @enum {string}
|
|
82638
|
+
*/
|
|
82639
|
+
var StreamsTrimmingStatus;
|
|
82640
|
+
(function (StreamsTrimmingStatus) {
|
|
82641
|
+
StreamsTrimmingStatus["UNAVAILABLE"] = "UNAVAILABLE";
|
|
82642
|
+
StreamsTrimmingStatus["AVAILABLE"] = "AVAILABLE";
|
|
82643
|
+
StreamsTrimmingStatus["STARTED"] = "STARTED";
|
|
82644
|
+
StreamsTrimmingStatus["ERROR"] = "ERROR";
|
|
82645
|
+
StreamsTrimmingStatus["FINISHED"] = "FINISHED";
|
|
82646
|
+
})(StreamsTrimmingStatus = exports.StreamsTrimmingStatus || (exports.StreamsTrimmingStatus = {}));
|
|
82647
|
+
exports["default"] = StreamsTrimmingStatus;
|
|
82648
|
+
|
|
82649
|
+
|
|
82622
82650
|
/***/ }),
|
|
82623
82651
|
|
|
82624
82652
|
/***/ "./models/StreamsType.ts":
|
|
@@ -82754,7 +82782,6 @@ var StreamsVideoQuality;
|
|
|
82754
82782
|
StreamsVideoQuality["NONE"] = "NONE";
|
|
82755
82783
|
StreamsVideoQuality["PREVIEW"] = "PREVIEW";
|
|
82756
82784
|
StreamsVideoQuality["DEFAULT"] = "DEFAULT";
|
|
82757
|
-
StreamsVideoQuality["TRIMMED"] = "TRIMMED";
|
|
82758
82785
|
})(StreamsVideoQuality = exports.StreamsVideoQuality || (exports.StreamsVideoQuality = {}));
|
|
82759
82786
|
exports["default"] = StreamsVideoQuality;
|
|
82760
82787
|
|
|
@@ -82796,6 +82823,7 @@ var StreamsVideoResponse = /** @class */ (function () {
|
|
|
82796
82823
|
this.posterUrl = (0, Mapper_1.map)(obj.posterUrl);
|
|
82797
82824
|
this.adConfig = (0, Mapper_1.map)(obj.adConfig, StreamsAdConfigResponse_1.default);
|
|
82798
82825
|
this.contentProtection = (0, Mapper_1.map)(obj.contentProtection, StreamsContentProtectionResponse_1.default);
|
|
82826
|
+
this.trimming = (0, Mapper_1.map)(obj.trimming);
|
|
82799
82827
|
}
|
|
82800
82828
|
return StreamsVideoResponse;
|
|
82801
82829
|
}());
|
|
@@ -86809,6 +86837,7 @@ __exportStar(__webpack_require__(/*! ./StreamsLiveUpdateRequest */ "./models/Str
|
|
|
86809
86837
|
__exportStar(__webpack_require__(/*! ./StreamsSearchResponse */ "./models/StreamsSearchResponse.ts"), exports);
|
|
86810
86838
|
__exportStar(__webpack_require__(/*! ./StreamsStyleConfigPlayerStyle */ "./models/StreamsStyleConfigPlayerStyle.ts"), exports);
|
|
86811
86839
|
__exportStar(__webpack_require__(/*! ./StreamsStyleConfigResponse */ "./models/StreamsStyleConfigResponse.ts"), exports);
|
|
86840
|
+
__exportStar(__webpack_require__(/*! ./StreamsTrimmingStatus */ "./models/StreamsTrimmingStatus.ts"), exports);
|
|
86812
86841
|
__exportStar(__webpack_require__(/*! ./StreamsType */ "./models/StreamsType.ts"), exports);
|
|
86813
86842
|
__exportStar(__webpack_require__(/*! ./StreamsVideoCreateRequest */ "./models/StreamsVideoCreateRequest.ts"), exports);
|
|
86814
86843
|
__exportStar(__webpack_require__(/*! ./StreamsVideoEncodingStatus */ "./models/StreamsVideoEncodingStatus.ts"), exports);
|
|
@@ -91732,10 +91761,16 @@ function fetch(input, init) {
|
|
|
91732
91761
|
|
|
91733
91762
|
xhr.onload = function() {
|
|
91734
91763
|
var options = {
|
|
91735
|
-
status: xhr.status,
|
|
91736
91764
|
statusText: xhr.statusText,
|
|
91737
91765
|
headers: parseHeaders(xhr.getAllResponseHeaders() || '')
|
|
91738
91766
|
}
|
|
91767
|
+
// This check if specifically for when a user fetches a file locally from the file system
|
|
91768
|
+
// Only if the status is out of a normal range
|
|
91769
|
+
if (request.url.startsWith('file://') && (xhr.status < 200 || xhr.status > 599)) {
|
|
91770
|
+
options.status = 200;
|
|
91771
|
+
} else {
|
|
91772
|
+
options.status = xhr.status;
|
|
91773
|
+
}
|
|
91739
91774
|
options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL')
|
|
91740
91775
|
var body = 'response' in xhr ? xhr.response : xhr.responseText
|
|
91741
91776
|
setTimeout(function() {
|
|
@@ -91828,7 +91863,6 @@ if (!g.fetch) {
|
|
|
91828
91863
|
g.Response = Response
|
|
91829
91864
|
}
|
|
91830
91865
|
|
|
91831
|
-
|
|
91832
91866
|
/***/ })
|
|
91833
91867
|
|
|
91834
91868
|
/******/ });
|