Creator Guide

Media on Prims

Turn any surface into a screen. Play video, stream audio, embed a YouTube video, or display a web page -- all on the face of an object you built.

Media on prims is what turns a static building into a living space. Hang a TV on a wall and play a video. Place a jukebox that streams music. Build an information kiosk that shows a web page. Create a cinema where visitors watch together.

Media works per-face, just like textures. You can have a video playing on the front face of a box while the other five faces show brick, wood, or any other material. One object, multiple purposes.

What You Can Play

Media on prims supports several types of content. The system auto-detects the type when you paste a URL, so you do not need to configure it manually.

Video

Play video files directly on a surface. MP4 and WebM formats are supported, as well as HLS live streams. The video renders as a texture on the prim face -- it looks like a real screen in the world, complete with self-illumination so it glows like a monitor even in dark environments.

YouTube

Paste any YouTube URL -- the standard watch link, a short link, or an embed link all work. The system detects YouTube automatically and handles it. This is the easiest way to set up a TV or presentation screen in your world.

Audio

Stream audio from MP3, OGG, or WAV files. Audio-only media displays a poster image on the face (or a default visualizer) while the sound plays. Audio is spatial -- it gets quieter as you walk away and louder as you approach, just like a real speaker in a room.

Web Pages

Embed a web page on any face. The page is captured and displayed as an image on the surface. Use this for information displays, dashboards, community boards, or live data feeds.

Image Slideshows

Cycle through a set of images on a timer. Build a photo gallery, a rotating advertisement board, or a presentation screen. Each image displays for a configurable duration before transitioning to the next.

Adding Media to an Object

Media is configured in the Code tab of the Build Panel, since media is behavior -- it plays, pauses, and responds to interaction.

  1. Select an object you have already placed in the world.
  2. Open the Code tab in the Build Panel.
  3. Choose which face should display the media using the face dropdown. (This uses the same face system as per-face texturing.)
  4. Paste a URL into the media URL field. The system auto-detects whether it is a video, YouTube link, audio file, or web page.
  5. Configure playback -- set looping, volume, and whether the media should autoplay or wait for a click.
  6. Done. The media is saved automatically. Other visitors to your world will see the media prim and can interact with it.

Click-to-Play vs. Autoplay

By default, media waits for a visitor to click before playing. This is click-to-play mode, and it is the recommended default for most uses. It respects visitors' bandwidth, attention, and speakers.

You can enable autoplay if you want media to start as soon as someone enters the area. Autoplay media starts at reduced volume to avoid startling visitors. Keep in mind that web browsers have their own autoplay policies -- if a visitor has not interacted with the page yet, the browser may require the media to start muted, showing a "click to unmute" prompt.

Click-to-Play (default)
Media shows a poster image or first frame. Visitors click to start playback. Best for TVs, jukeboxes, and galleries.
Autoplay
Media starts playing when a visitor is nearby. Good for ambient music, background video loops, or event screens. Starts at reduced volume.

Playback Controls

When a visitor clicks a media prim, playback controls appear as an overlay on the surface. The controls include play, pause, stop, a progress bar, and a volume slider.

(video playing on the prim face)
|||||||---- 3:42 / 10:15    🔊 ||||----

You can choose from three control styles when setting up media:

Standard
Full controls: play, pause, stop, progress bar, and volume. Best for TVs and video players.
Mini
Just play and pause as a small icon in the corner. Cleaner look for ambient media.
None
No visible controls. Playback is controlled entirely by scripts. For custom media products like jukeboxes or interactive art.

Spatial Audio

All media audio is spatial -- it behaves like real sound in a 3D space. The volume changes based on your distance from the media prim.

Close (within 5 meters)
Full volume. You hear the media clearly, as if you were standing right in front of a speaker.
Nearby (5 to 30 meters)
Volume fades gradually with distance. Sounds natural, like walking away from a TV in another room.
Far away (beyond 30 meters)
Silent. The media is still playing visually (if visible), but audio is muted to avoid noise pollution from distant sources.

This means you can have a nightclub with music in one area and a quiet garden next door without the audio bleeding between them. The world handles it naturally.

Media and Faces

Media works with the same per-face system described in the Per-Face Texturing guide. Each face of an object can independently have a static texture, a color, or media. You can have a box that is brick on five sides and a video screen on the front.

When media is active on a face, it replaces that face's texture. The underlying color is still there -- it shows through transparent areas of the video and appears when media is stopped.

Media faces glow like real screens. Even in a dark room, a media face illuminates itself so the video or image is always visible.

Scripted Media

For advanced creators, media can be controlled entirely through scripts. This opens up possibilities like custom TV products, interactive jukeboxes, playlist systems, and media-driven art installations.

A script attached to an object can start, stop, pause, and seek media. It can change the URL, adjust volume, and respond to events like playback ending. This lets you build a jukebox that automatically advances to the next track, or a TV remote control that changes what is playing.

Scripts can only control media on the object they belong to. To build a separate remote control, you use the messaging system to send commands between objects.

What Visitors Experience

When someone visits a world you have built, media prims work automatically. Visitors do not need to configure anything -- they just see the media surface and interact with it.

The system is smart about performance. Media that is far from a visitor is automatically paused to save resources. When they walk closer, playback resumes seamlessly. If a world has many media prims, the system keeps the closest ones active and pauses distant ones, so the experience stays smooth even in media-rich environments.

Poster Images

When media is in click-to-play mode, the face displays a poster image until the visitor clicks. You can set a custom poster image -- perhaps a "Click to Watch" graphic, a movie poster, or an album cover -- that gives visitors a clear visual cue about what the media contains.

If you do not set a poster, the system shows the first frame of the video or a default media icon.

Media Tips

Ideas to Get You Started

In-World Cinema
Build a room with seating and a large flat box on the wall. Apply a video URL to the front face. Add chairs with the Sit click action.
Art Gallery
Use planes on walls with image slideshows. Each "painting" cycles through a series of artworks on a timer.
Music Venue
Place a jukebox object with audio media. Use a script to cycle through a playlist. Add spatial audio so the music fills the room.
Info Kiosk
Embed a web page on a prim face to show a community calendar, event schedule, or live dashboard.
Lecture Hall
A large screen with synchronized playback so everyone in the room sees the same presentation at the same time.
Ambient Atmosphere
Walk-through prims with low-volume ambient audio. Place them invisibly to create zones of birdsong, water, or wind.