marble3 / VideoScreen
Class: VideoScreen
Defined in: src/video-screen.ts:10
A screen in the world: a thin dark box whose front shows an animated placeholder feed with a title and an optional subtitle. The feed is a canvas redrawn about 30 times a second, so it moves without any video codec or autoplay permission. It has no physics.
Extends
Constructors
Constructor
new VideoScreen(
opts?):VideoScreen
Defined in: src/video-screen.ts:19
width × height × depth default to 4.4 × 2.6 × 0.12 world units, title to "▶ LIVE".
Parameters
opts?
depth?
number
height?
number
subtitle?
string
title?
string
width?
number
Returns
VideoScreen
Overrides
Properties
disposed
protecteddisposed:boolean=false
Defined in: src/entity/graphic.ts:19
Inherited from
id
id:
string
Defined in: src/entity/graphic.ts:16
Unique per entity. Keys FPS.entities, and is stamped on collision shapes so a ray or contact hit resolves back to its entity.
Inherited from
three
three:
Group
Defined in: src/entity/graphic.ts:18
The entity's node in the scene; FPS.add() puts it there. Add your meshes under it.
Inherited from
Methods
dispose()
dispose():
void
Defined in: src/video-screen.ts:72
Frees the geometry and instance buffers under three and takes it out of the scene. Idempotent. Materials and textures are not freed, since they are often shared: dispose your own. A subclass frees what else it owns, then calls super.dispose().
Returns
void
Overrides
update()
update():
void
Defined in: src/video-screen.ts:67
Called every frame the world is not paused, with the seconds since the last frame and the FPS the entity lives in (for its world and entities).
Returns
void