Class in reactor_media_surfaces.js

MediaSurfaceOwner

47 functions in 7 groups · hide internal

The main menu, drawn by Scenes and Windows.

Quick Reference

Setup & Creation 12

constructor() Sets up a new instance.
createVideo() Creates the video.
createImage() Creates the image.
attach() Attach.
attachmentKeyFor() Attachment key for.
attachPixi() Attach pixi.
createPixiScanline() Creates the pixi scanline.
attachThree() Attach three.
ensureUpperPass() Ensure upper pass.
makeThreeGeometry() Makes the three geometry.
createThreeScanline() Creates the three scanline.
ensureAudioRoute() Ensure audio route.

Getting Information 1

current() Current.

Checks (True / False) 1

needsRecreate() Whether it needs recreate.

Actions 7

startPlayback() Starts the playback.
restoreAndPlay() Restores the and play.
play() Play.
destroyPixiScanline() Destroy pixi scanline.
destroyThreeScanline() Destroy three scanline.
setPixiCorners() Sets the pixi corners.
applyDescriptor() Applies the descriptor.

Events, Commands & Input 2

listen() Listen.
listenVideo() Listen video.

Updating & Drawing 7

syncPixiScanlines() Sync pixi scanlines.
syncThreeScanlines() Sync three scanlines.
updateAudio() Updates the audio each frame.
updatePixiPosition() Updates the pixi position each frame.
syncVideoUploads() A playing video uploads every decoded frame to the GPU whether its quad is drawn or not: a flat map with a ro…
updateThreePosition() Updates the three position each frame.
update() Update.

Other 17

imageReady() Image ready.
imageSource() The picture as loaded, for a texture that takes any image-like: no canvas copy is made of it.
imageCanvas() The decoded pixels as a canvas, for PIXI's CanvasSource.
desiredBackend() Desired backend.
mapWants3D() Map wants3 d.
autoplayBlocked() Autoplay blocked.
retryPlayback() Retry playback.
threeGroup() Three group.
worldSize() World size.
worldWidth() The two halves of worldSize, for the per-tick placement, which made a record of them twice a frame per surfac…
worldHeight() World height.
character() Character.
transformedCorners() Transformed corners.
cornerTurn() The descriptor's turn and perspective, for transformCorner; one record, refilled.
transformCorner() One corner of the flat quad, turned and foreshortened, into out.
captureCurrentTime() Capture current time.
cleanup() Cleanup.

Setup & Creation

constructor

constructor source
new MediaSurfaceOwner(manager, descriptor, spriteset)

Sets up a new instance.

createVideo

method source
MediaSurfaceOwner.prototype.createVideo()

Creates the video.

createImage

method source
MediaSurfaceOwner.prototype.createImage()

Creates the image.

attach

method source
MediaSurfaceOwner.prototype.attach(spriteset)

Attach.

attachmentKeyFor

method source
MediaSurfaceOwner.prototype.attachmentKeyFor(descriptor)

Attachment key for.

attachPixi

method source
MediaSurfaceOwner.prototype.attachPixi(spriteset)

Attach pixi.

createPixiScanline

method source
MediaSurfaceOwner.prototype.createPixiScanline()

Creates the pixi scanline.

attachThree

method source
MediaSurfaceOwner.prototype.attachThree(state)

Attach three.

ensureUpperPass

method source
MediaSurfaceOwner.prototype.ensureUpperPass(state, scene)

Ensure upper pass.

makeThreeGeometry

method source
MediaSurfaceOwner.prototype.makeThreeGeometry()

Makes the three geometry.

createThreeScanline

method source
MediaSurfaceOwner.prototype.createThreeScanline(group)

Creates the three scanline.

ensureAudioRoute

method source
MediaSurfaceOwner.prototype.ensureAudioRoute()

Ensure audio route.

Getting Information

current

method source
MediaSurfaceOwner.prototype.current()

Current.

Checks (True / False)

needsRecreate

method source
MediaSurfaceOwner.prototype.needsRecreate(descriptor)

Whether it needs recreate.

Actions

startPlayback

method source
MediaSurfaceOwner.prototype.startPlayback()

Starts the playback.

restoreAndPlay

method source
MediaSurfaceOwner.prototype.restoreAndPlay()

Restores the and play.

play

method source
MediaSurfaceOwner.prototype.play()

Play.

destroyPixiScanline

method source
MediaSurfaceOwner.prototype.destroyPixiScanline()

Destroy pixi scanline.

destroyThreeScanline

method source
MediaSurfaceOwner.prototype.destroyThreeScanline()

Destroy three scanline.

setPixiCorners

method source
MediaSurfaceOwner.prototype.setPixiCorners(mesh, corners)

Sets the pixi corners.

applyDescriptor

method source
MediaSurfaceOwner.prototype.applyDescriptor(descriptor, forceGeometry)

Applies the descriptor.

Events, Commands & Input

listen

method source
MediaSurfaceOwner.prototype.listen(target, type, callback, options)

Listen.

listenVideo

method source
MediaSurfaceOwner.prototype.listenVideo(video)

Listen video.

Updating & Drawing

syncPixiScanlines

method source
MediaSurfaceOwner.prototype.syncPixiScanlines()

Sync pixi scanlines.

syncThreeScanlines

method source
MediaSurfaceOwner.prototype.syncThreeScanlines(group)

Sync three scanlines.

updateAudio

method source
MediaSurfaceOwner.prototype.updateAudio()

Updates the audio each frame.

updatePixiPosition

method source
MediaSurfaceOwner.prototype.updatePixiPosition()

Updates the pixi position each frame.

syncVideoUploads

method source
MediaSurfaceOwner.prototype.syncVideoUploads(minX, minY, maxX, maxY, graphics)

A playing video uploads every decoded frame to the GPU whether its quad is drawn or not: a flat map with a row of screens off to the side spent more on those uploads than on the whole map.

Details

A playing video uploads every decoded frame to the GPU whether its quad is drawn or not: a flat map with a row of screens off to the side spent more on those uploads than on the whole map. Off screen (judged through the parent's last rendered transform, with a margin for that frame of lag) the uploads wait, and the frame showing now goes up the moment the quad comes back. Playback itself carries on.

updateThreePosition

method source
MediaSurfaceOwner.prototype.updateThreePosition()

Updates the three position each frame.

update

method source
MediaSurfaceOwner.prototype.update()

Update.

Other

imageReady

method source
MediaSurfaceOwner.prototype.imageReady()

Image ready.

imageSource

method source
MediaSurfaceOwner.prototype.imageSource()

The picture as loaded, for a texture that takes any image-like: no canvas copy is made of it.

imageCanvas

method source
MediaSurfaceOwner.prototype.imageCanvas()

The decoded pixels as a canvas, for PIXI's CanvasSource.

desiredBackend

method source
MediaSurfaceOwner.prototype.desiredBackend(descriptor)

Desired backend.

mapWants3D

method source
MediaSurfaceOwner.prototype.mapWants3D()

Map wants3 d.

autoplayBlocked

method source
MediaSurfaceOwner.prototype.autoplayBlocked(error)

Autoplay blocked.

retryPlayback

method source
MediaSurfaceOwner.prototype.retryPlayback()

Retry playback.

threeGroup

method source
MediaSurfaceOwner.prototype.threeGroup(state, descriptor)

Three group.

worldSize

method source
MediaSurfaceOwner.prototype.worldSize()

World size.

worldWidth

method source
MediaSurfaceOwner.prototype.worldWidth()

The two halves of worldSize, for the per-tick placement, which made a record of them twice a frame per surface to read two numbers.

worldHeight

method source
MediaSurfaceOwner.prototype.worldHeight()

World height.

character

method source
MediaSurfaceOwner.prototype.character()

Character.

transformedCorners

method source
MediaSurfaceOwner.prototype.transformedCorners()

Transformed corners.

cornerTurn

method source
MediaSurfaceOwner.prototype.cornerTurn()

The descriptor's turn and perspective, for transformCorner; one record, refilled.

transformCorner

method source
MediaSurfaceOwner.prototype.transformCorner(corner, turn, out)

One corner of the flat quad, turned and foreshortened, into out.

captureCurrentTime

method source
MediaSurfaceOwner.prototype.captureCurrentTime(descriptor)

Capture current time.

cleanup

method source
MediaSurfaceOwner.prototype.cleanup(reason)

Cleanup.