UNPKG

@kaltura-ng/kaltura-client

Version:
47 lines 2.02 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); import { KalturaRequest } from '../kaltura-request'; /** * Build request payload for service 'captionAsset' action 'serveWebVTT'. * * Usage: Serves caption by its id converting it to segmented WebVTT * * Server response type: string * Server failure response type: KalturaAPIException * @class * @extends KalturaRequest */ var CaptionAssetServeWebVTTAction = (function (_super) { __extends(CaptionAssetServeWebVTTAction, _super); function CaptionAssetServeWebVTTAction(data) { var _this = _super.call(this, data, { responseType: 'f', responseSubType: '', responseConstructor: null }) || this; if (typeof _this.segmentDuration === 'undefined') _this.segmentDuration = 30; if (typeof _this.localTimestamp === 'undefined') _this.localTimestamp = 10000; return _this; } CaptionAssetServeWebVTTAction.prototype._getMetadata = function () { var result = _super.prototype._getMetadata.call(this); Object.assign(result.properties, { service: { type: 'c', default: 'caption_captionasset' }, action: { type: 'c', default: 'serveWebVTT' }, captionAssetId: { type: 's' }, segmentDuration: { type: 'n' }, segmentIndex: { type: 'n' }, localTimestamp: { type: 'n' } }); return result; }; return CaptionAssetServeWebVTTAction; }(KalturaRequest)); export { CaptionAssetServeWebVTTAction }; //# sourceMappingURL=CaptionAssetServeWebVTTAction.js.map