API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classVideoFactory

@codexo/exojs / resources / stable

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.

1
props
5
methods
0
events
Import
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.

Constructors 1
new(): VideoFactory
Methods 5
create(source: ArrayBuffer, options: VideoFactoryOptions): Promise<Video>
createObjectUrl(blob: Blob): string
destroy(): void
process(response: Response): Promise<ArrayBuffer>
revokeObjectUrl(objectUrl: string): void
Properties 1
storageName: "video"
Source