@bitmovin/api-sdk 1.172.0 → 1.173.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 +31 -2
- package/dist/bitmovin-api-sdk.browser.min.js +1 -1
- package/dist/common/RestClient.js +1 -1
- package/dist/streams/live/LiveApi.d.ts +7 -0
- package/dist/streams/live/LiveApi.js +14 -0
- package/dist/streams/video/VideoApi.d.ts +7 -0
- package/dist/streams/video/VideoApi.js +14 -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.173.0',
|
|
5991
5991
|
'Content-Type': 'application/json'
|
|
5992
5992
|
};
|
|
5993
5993
|
if (tenantOrgId) {
|
|
@@ -90644,6 +90644,20 @@ var LiveApi = /** @class */ (function (_super) {
|
|
|
90644
90644
|
return (0, Mapper_1.map)(response, StreamsLiveResponse_1.default);
|
|
90645
90645
|
});
|
|
90646
90646
|
};
|
|
90647
|
+
/**
|
|
90648
|
+
* @summary Delete Stream
|
|
90649
|
+
* @param {string} streamId Id of the stream.
|
|
90650
|
+
* @throws {BitmovinError}
|
|
90651
|
+
* @memberof LiveApi
|
|
90652
|
+
*/
|
|
90653
|
+
LiveApi.prototype.delete = function (streamId) {
|
|
90654
|
+
var pathParamMap = {
|
|
90655
|
+
stream_id: streamId
|
|
90656
|
+
};
|
|
90657
|
+
return this.restClient.delete('/streams/live/{stream_id}', pathParamMap).then(function (response) {
|
|
90658
|
+
return (0, Mapper_1.map)(response);
|
|
90659
|
+
});
|
|
90660
|
+
};
|
|
90647
90661
|
/**
|
|
90648
90662
|
* @summary Get live stream by id
|
|
90649
90663
|
* @param {string} streamId Id of the stream.
|
|
@@ -91088,6 +91102,20 @@ var VideoApi = /** @class */ (function (_super) {
|
|
|
91088
91102
|
return (0, Mapper_1.map)(response, StreamsVideoResponse_1.default);
|
|
91089
91103
|
});
|
|
91090
91104
|
};
|
|
91105
|
+
/**
|
|
91106
|
+
* @summary Delete Stream
|
|
91107
|
+
* @param {string} streamId Id of the stream.
|
|
91108
|
+
* @throws {BitmovinError}
|
|
91109
|
+
* @memberof VideoApi
|
|
91110
|
+
*/
|
|
91111
|
+
VideoApi.prototype.delete = function (streamId) {
|
|
91112
|
+
var pathParamMap = {
|
|
91113
|
+
stream_id: streamId
|
|
91114
|
+
};
|
|
91115
|
+
return this.restClient.delete('/streams/video/{stream_id}', pathParamMap).then(function (response) {
|
|
91116
|
+
return (0, Mapper_1.map)(response);
|
|
91117
|
+
});
|
|
91118
|
+
};
|
|
91091
91119
|
/**
|
|
91092
91120
|
* @summary Get Streams video by id
|
|
91093
91121
|
* @param {string} streamId Id of the stream.
|
|
@@ -91814,7 +91842,7 @@ function fetch(input, init) {
|
|
|
91814
91842
|
|
|
91815
91843
|
xhr.ontimeout = function() {
|
|
91816
91844
|
setTimeout(function() {
|
|
91817
|
-
reject(new TypeError('Network request
|
|
91845
|
+
reject(new TypeError('Network request timed out'))
|
|
91818
91846
|
}, 0)
|
|
91819
91847
|
}
|
|
91820
91848
|
|
|
@@ -91891,6 +91919,7 @@ if (!g.fetch) {
|
|
|
91891
91919
|
g.Response = Response
|
|
91892
91920
|
}
|
|
91893
91921
|
|
|
91922
|
+
|
|
91894
91923
|
/***/ })
|
|
91895
91924
|
|
|
91896
91925
|
/******/ });
|