@bitmovin/api-sdk
Version:
Bitmovin JS/TS API SDK
30 lines (29 loc) • 1.01 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TimeBasedTrimmingInputStream = void 0;
const Mapper_1 = require("../common/Mapper");
const InputStream_1 = require("./InputStream");
const InputStreamType_1 = require("./InputStreamType");
/**
* @export
* @class TimeBasedTrimmingInputStream
*/
class TimeBasedTrimmingInputStream extends InputStream_1.default {
constructor(obj) {
super(obj);
/**
* Discriminator property for InputStream
* @type {string}
* @memberof TimeBasedTrimmingInputStream
*/
this.type = InputStreamType_1.default.TRIMMING_TIME_BASED;
if (!obj) {
return;
}
this.inputStreamId = (0, Mapper_1.map)(obj.inputStreamId);
this.offset = (0, Mapper_1.map)(obj.offset);
this.duration = (0, Mapper_1.map)(obj.duration);
}
}
exports.TimeBasedTrimmingInputStream = TimeBasedTrimmingInputStream;
exports.default = TimeBasedTrimmingInputStream;