Skip to content

@relu-interactives/spatial-ecs


@relu-interactives/spatial-ecs / index / createVideoComponent

Function: createVideoComponent()

ts
function createVideoComponent(
   world, 
   entityId, ...
   args): VideoComponent;

Defined in: factories/components/VideoFactory.ts:4

Parameters

ParameterType
worldWorld
entityIdnumber
...args[string, Partial<{ autoplay: boolean; loop: boolean; volume: number; width: number; height: number; isGreenScreen: boolean; backgroundColor: string; similarity: number; smoothness: number; spill: number; positional: boolean; refDistance: number; distanceModel: string; rolloffFactor: number; }>]

Returns

VideoComponent