UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

48 lines (47 loc) 2.1 kB
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); var BaseAPI_1 = require("../../../../common/BaseAPI"); var CustomTagsApi_1 = require("./customTags/CustomTagsApi"); var TypeApi_1 = require("./type/TypeApi"); var VideoApi_1 = require("./video/VideoApi"); var AudioApi_1 = require("./audio/AudioApi"); var SubtitlesApi_1 = require("./subtitles/SubtitlesApi"); var VttApi_1 = require("./vtt/VttApi"); var ClosedCaptionsApi_1 = require("./closedCaptions/ClosedCaptionsApi"); /** * MediaApi - object-oriented interface * @export * @class MediaApi * @extends {BaseAPI} */ var MediaApi = /** @class */ (function (_super) { __extends(MediaApi, _super); function MediaApi(configuration) { var _this = _super.call(this, configuration) || this; _this.customTags = new CustomTagsApi_1.default(configuration); _this.type = new TypeApi_1.default(configuration); _this.video = new VideoApi_1.default(configuration); _this.audio = new AudioApi_1.default(configuration); _this.subtitles = new SubtitlesApi_1.default(configuration); _this.vtt = new VttApi_1.default(configuration); _this.closedCaptions = new ClosedCaptionsApi_1.default(configuration); return _this; } return MediaApi; }(BaseAPI_1.BaseAPI)); exports.default = MediaApi;