API reference

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

T

typeMediaCrossOrigin

@codexo/exojs / core / stable

Value for a media element's `crossorigin` attribute. `'anonymous'` is the default for URL-backed media: without it a cross-origin video is playable but unusable as a render source, because uploading it to a texture taints the pipeline. `null` omits the attribute entirely, which accepts that trade for playback-only media.

0
props
0
methods
0
events
Import
import { MediaCrossOrigin } from '@codexo/exojs'

Value for a media element's `crossorigin` attribute.

`'anonymous'` is the default for URL-backed media: without it a cross-origin video is playable but unusable as a render source, because uploading it to a texture taints the pipeline. `null` omits the attribute entirely, which accepts that trade for playback-only media.

Definition1
"anonymous" | "use-credentials" | null
Source