UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

54 lines (53 loc) 2.46 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 }); exports.StreamInfo = void 0; var Mapper_1 = require("../common/Mapper"); var AudioGroupConfiguration_1 = require("./AudioGroupConfiguration"); var BitmovinResource_1 = require("./BitmovinResource"); /** * @export * @class StreamInfo */ var StreamInfo = /** @class */ (function (_super) { __extends(StreamInfo, _super); function StreamInfo(obj) { var _this = _super.call(this, obj) || this; if (!obj) { return _this; } _this.audio = (0, Mapper_1.map)(obj.audio); _this.audioGroups = (0, Mapper_1.map)(obj.audioGroups, AudioGroupConfiguration_1.default); _this.video = (0, Mapper_1.map)(obj.video); _this.subtitles = (0, Mapper_1.map)(obj.subtitles); _this.closedCaptions = (0, Mapper_1.map)(obj.closedCaptions); _this.encodingId = (0, Mapper_1.map)(obj.encodingId); _this.streamId = (0, Mapper_1.map)(obj.streamId); _this.muxingId = (0, Mapper_1.map)(obj.muxingId); _this.drmId = (0, Mapper_1.map)(obj.drmId); _this.segmentPath = (0, Mapper_1.map)(obj.segmentPath); _this.uri = (0, Mapper_1.map)(obj.uri); _this.startSegmentNumber = (0, Mapper_1.map)(obj.startSegmentNumber); _this.endSegmentNumber = (0, Mapper_1.map)(obj.endSegmentNumber); _this.forceFrameRateAttribute = (0, Mapper_1.map)(obj.forceFrameRateAttribute); _this.forceVideoRangeAttribute = (0, Mapper_1.map)(obj.forceVideoRangeAttribute); return _this; } return StreamInfo; }(BitmovinResource_1.default)); exports.StreamInfo = StreamInfo; exports.default = StreamInfo;