Component reference
File components
Video component
19min
description the video component allows you to add video playback to entities in your scene videos can be displayed on 2d surfaces, projected onto geometry, and configured with various playback, audio, and display settings media source the media source setting determines how the video is played and whether it is shared across multiple entities options include this player the entity plays its own video source sync with other the entity syncs with another video component’s media source, optimizing performance by reducing redundant video streams if this player is selected, additional playback settings are available playback settings when using this player , the following settings allow you to customize how the video is played back source paths a text field for specifying a media url you can enter a url manually drag and drop a video file from the assets panel , which will populate the url automatically add multiple source paths by clicking + volume a slider that controls playback volume, ranging from 0 (silent) to 10 (maximum) media options synchronize client playback (enabled by default) ensures video playback is synced across all users autoplay starts playback automatically when the scene loads mute in editor disables video playback inside the studio editor play mode determines how the video plays single plays the selected file once random randomly selects a file from the source paths loop repeats the video continuously singleloop repeats the currently playing track indefinitely audio mode the audio mode setting determines how the video's sound is emitted in the scene options include positional the audio emanates from a specific location in the scene and changes volume based on the listener's position ambient the audio is heard evenly throughout the entire scene if positional is selected, additional spatial settings are available positional audio settings these settings control how the sound behaves in 3d space property description distance model defines how the audio volume decreases over distance options include linear , inverse , and exponential rolloff factor adjusts the rate at which the audio volume decreases according to the selected distance model a higher value results in a steeper volume drop over distance max distance the maximum distance (in meters) at which the audio can be heard beyond this distance, the audio is silent cone inner angle the angle (in degrees) of the inner cone where the audio is at full volume this represents the area directly in front of the audio source cone outer angle the angle (in degrees) of the outer cone where the audio begins to decrease in volume outside this angle, the sound fades according to the cone outer gain cone outer gain a value between 0 0 and 1 0 that determines the volume outside the outer cone a value of 0 0 means the audio is silent outside the cone, while 1 0 means no decrease in volume video display settings the following settings control how the video appears when displayed on an entity video fit defines how the video scales within its display surface contain scales the video to fit within the canvas without cropping cover scales the video to cover the entire canvas, cropping any excess parts vertical adjusts the video to fit vertically within the canvas horizontal adjusts the video to fit horizontally within the canvas projection determines how the video is mapped onto a surface flat displays the video on a standard 2d surface equirectangular360 projects the video onto a spherical surface, suitable for 360 degree videos side controls which sides of the surface the video is visible on front displays the video on the front facing side back displays the video on the back facing side double (default) displays the video on both sides canvas size adjusts the width ( x ) and height ( y ) of the video surface uv offset shifts the video texture on the surface x moves the video horizontally y moves the video vertically uv scale scales the video texture x adjusts horizontal scaling y adjusts vertical scaling wrap mode defines how the video repeats across the surface clamp prevents tiling and keeps the video constrained to the surface repeat tiles the video across the surface mirrored repeat tiles the video with a mirroring effect transparency a checkbox that enables transparency in the video enable allows parts of the video to be transparent based on its alpha channel sync with other this option allows the video entity to sync with another video source, optimizing performance by reducing redundant streaming sync with other inherits all audio related configurations from this player , ensuring synchronized playback across multiple video screens