WebMExportOptions
此内容尚不支持你的语言。
Defined in: webm-export.ts:42
Extended by
Section titled “Extended by”Properties
Section titled “Properties”audioBitrate
Section titled “audioBitrate”
readonlyaudioBitrate:number
Defined in: webm-export.ts:50
audioCodecString?
Section titled “audioCodecString?”
readonlyoptionalaudioCodecString:string
Defined in: webm-export.ts:54
Exact audio codec string selected by preflight.
channelCount
Section titled “channelCount”
readonlychannelCount:number
Defined in: webm-export.ts:48
cleanupSink()?
Section titled “cleanupSink()?”
readonlyoptionalcleanupSink: (reason) =>void|Promise<void>
Defined in: webm-export.ts:63
Idempotent sink-specific cleanup (for example deleting a partial OPFS file).
Parameters
Section titled “Parameters”reason
Section titled “reason”unknown
Returns
Section titled “Returns”void | Promise<void>
durationUs
Section titled “durationUs”
readonlydurationUs:number
Defined in: webm-export.ts:43
frameRate
Section titled “frameRate”
readonlyframeRate:Rational
Defined in: webm-export.ts:46
height
Section titled “height”
readonlyheight:number
Defined in: webm-export.ts:45
onProgress()?
Section titled “onProgress()?”
readonlyoptionalonProgress: (progress) =>void
Defined in: webm-export.ts:70
Parameters
Section titled “Parameters”progress
Section titled “progress”number
Returns
Section titled “Returns”void
renderAudio()
Section titled “renderAudio()”
readonlyrenderAudio: (request,signal?) =>Promise<Float32Array<ArrayBufferLike>>
Defined in: webm-export.ts:65
Parameters
Section titled “Parameters”request
Section titled “request”signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<Float32Array<ArrayBufferLike>>
renderFrame()
Section titled “renderFrame()”
readonlyrenderFrame: (request,signal?) =>Promise<VideoFrame>
Defined in: webm-export.ts:64
Parameters
Section titled “Parameters”request
Section titled “request”signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<VideoFrame>
sampleRate
Section titled “sampleRate”
readonlysampleRate:number
Defined in: webm-export.ts:47
signal?
Section titled “signal?”
readonlyoptionalsignal:AbortSignal
Defined in: webm-export.ts:69
readonlysink:WritableStream<{data:Uint8Array<ArrayBuffer>;position:number;type:"write"; }>
Defined in: webm-export.ts:57
sourceColorSpace?
Section titled “sourceColorSpace?”
readonlyoptionalsourceColorSpace:VideoColorSpaceInit
Defined in: webm-export.ts:56
Color interpretation of the RGBA frames passed to the encoder.
videoBitrate
Section titled “videoBitrate”
readonlyvideoBitrate:number
Defined in: webm-export.ts:49
videoCodecString?
Section titled “videoCodecString?”
readonlyoptionalvideoCodecString:string
Defined in: webm-export.ts:52
Exact codec string selected by preflight. Defaults to the profile baseline.
readonlywidth:number
Defined in: webm-export.ts:44