Class: VideoAvatar

VideoAvatar()

A disc that shows video stream. Until streaming starts, altText is displayed on the cylinder. It can be extended, and new class provided to WorldManager factory.

Constructor

new VideoAvatar()

Source:

Classes

VideoAvatar

Members

autoAttach

Should own video avatar be attached to hud?
Source:

autoStart

Should show() start video?
Source:

name

Compatbility with Avatar class
Source:

userHeight

Compatbility with Avatar class
Source:

Methods

attachToCamera(position)

Rescale own avatar and attach to current camera at given position
Parameters:
Name Type Description
position default 50cm ahead, 15cm right, 15cm below.
Source:

cameraChanged()

Called when active camera changes/avatar attaches to camera
Source:

detachFromCamera()

Rescale own avatar and detach from camera
Source:

displayAlt()

Displays altImage if available, altText otherwise
Source:

displayImage(image)

Display and optionally set altImage
Parameters:
Name Type Description
image path to the image file
Source:

displayStream()

Create and display VideoTexture from given MediaStream.
Source:

displayText()

Display and optionally set altText.
Source:

(async) displayVideo()

Display video from given device, used for own avatar.
Source:

dispose()

dispose of everything
Source:

getUrl()

Compatbility with Avatar class
Source:

(async) show()

Show the avatar. Used for both own and remote avatars.
Source: