UNPKG

@bitmovin/api-sdk

Version:

Bitmovin JS/TS API SDK

53 lines (52 loc) 2.17 kB
import Muxing from './Muxing'; import MuxingType from './MuxingType'; /** * @export * @class WebmMuxing */ export declare class WebmMuxing extends Muxing { /** * Discriminator property for Muxing * @type {string} * @memberof WebmMuxing */ readonly type: MuxingType; /** * Length of the fragments in seconds (required) * @type {number} * @memberof WebmMuxing */ segmentLength?: number; /** * Segment naming policy * @type {string} * @memberof WebmMuxing */ segmentNaming?: string; /** * Segment naming policy containing one or both of the following placeholders: - '{rand_chars:x}', which will be replaced by a random alphanumeric string of length x (default 32) on each (re)start of the encoding. The resulting string will be copied to the segmentNaming property. Intended to avoid re-use of segment names after restarting a live encoding. - '{segment_rand_chars:x}', which will be replaced by a random alphanumeric string of length x (default 32) for each different segment. This is intended to avoid guessing segment URLs by replacing segment numbers. If segmentNamingTemplate is set, segmentNaming must not be set. * @type {string} * @memberof WebmMuxing */ segmentNamingTemplate?: string; /** * Init segment name * @type {string} * @memberof WebmMuxing */ initSegmentName?: string; /** * Segment naming policy containing a placeholder of the format '{rand_chars:x}', which will be replaced by a random alphanumeric string of length x (default 32) on each (re)start of the encoding. The resulting string will be copied to the initSegmentName property. Intended to avoid re-use of segment names after restarting a live encoding. If initSegmentNameTemplate is set, initSegmentName must not be set. * @type {string} * @memberof WebmMuxing */ initSegmentNameTemplate?: string; /** * Number of segments which have been encoded * @type {number} * @memberof WebmMuxing */ segmentsMuxed?: number; constructor(obj?: Partial<WebmMuxing>); } export default WebmMuxing;