API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
classVideoFactory
AssetFactory implementation that loads video files (MP4, WebM, OGG, and other browser-supported container formats) and produces a Video instance suitable for use as a dynamic texture source in the rendering pipeline. Video data is buffered via a `<video>` element rather than decoded up-front. The `'stalled'` event is intentionally not treated as an error because it fires transiently during normal buffering on slow connections. All `<video>` elements are paused and detached when VideoFactory.destroy is called.
import { VideoFactory } from '@codexo/exojs' AssetFactory implementation that loads video files (MP4, WebM, OGG, and other browser-supported container formats) and produces a Video instance suitable for use as a dynamic texture source in the rendering pipeline.
Video data is buffered via a `\<video>` element rather than decoded up-front. The `'stalled'` event is intentionally not treated as an error because it fires transiently during normal buffering on slow connections. All `\<video>` elements are paused and detached when VideoFactory.destroy is called.
new(): VideoFactory create(source: ArrayBuffer, options: VideoFactoryOptions): Promise<Video> createObjectUrl(blob: Blob): string destroy(): void process(response: Response): Promise<ArrayBuffer> revokeObjectUrl(objectUrl: string): void storageName: "video"