UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

31 lines (30 loc) 856 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const BaseAPI_1 = require("../../../common/BaseAPI"); const Mapper_1 = require("../../../common/Mapper"); /** * StartApi - object-oriented interface * @export * @class StartApi * @extends {BaseAPI} */ class StartApi extends BaseAPI_1.BaseAPI { constructor(configuration) { super(configuration); } /** * @summary Start live stream by id * @param {string} streamId Id of the stream. * @throws {BitmovinError} * @memberof StartApi */ update(streamId) { const pathParamMap = { stream_id: streamId }; return this.restClient.put('/streams/live/{stream_id}/start', pathParamMap).then((response) => { return (0, Mapper_1.map)(response); }); } } exports.default = StartApi;