Properties
Private
#ctx
#ctx: OffscreenCanvasRenderingContext2D
Private
#cvs
#cvs: OffscreenCanvas
Private
#lastVF
#lastVF: null | VideoFrame = null
Private
#lineHeight
#lineHeight: number = 0
Private
#linePadding
#linePadding: number = 0
Private
#meta
#meta: {
duration: number;
height: number;
width: number;
} = ...
Type declaration
duration: number
height: number
width: number
Private
#opts
#opts: Required<IEmbedSubtitlesOpts> = ...
Private
#subtitles
#subtitles: SubtitleStruct[] = []
ready
ready: Promise<IClipMeta>
嵌入式字幕,将字幕(目前仅支持 SRT 格式)嵌入视频画面中
Example