Content Creators
Play videos

Play videos

To play videos on a screen on your scene, use the Video Player Smart Item .

You can Play videos from either:

  • Local files: Upload a video file as part of the scene, then point the URL field to the path to that file.
  • Stream from a URL: Point to a live or pre-recorded stream on the web, for example from Vimeo. See streaming videos
  • Stream live from DCL Cast: This simplified service lets you easily set up a live stream as a scene owner. See Decentraland Cast .

There are two options for when to play a video:

  • Configure the Video Player component of the item directly. This makes the video start playing as soon as the scene loads.

  • Define an Action of type Play Video Stream. This lets you trigger the playing of the video as the result of a player interaction, like walking into a room, or pushing a button. See Smart Items - Advanced .

You can configure the volume of the video’s sounds. Note that the audio from the stream is not positional, it is heard at an even volume through all your scene.

You can also configure the video to either loop or play once.

📔 Note: Avoid playing more than one video at any given time in your scene, because it can severely impact performance for players. Always stop other videos before playing a second video.

We also recommend starting to play the video when the player is near or performs an action to do that. Starting to play a video when your scene is loaded far in the horizon will unnecessarily affect performance while players visit neighboring scenes.

Streaming videos #

The source of the streaming must be an https URL (http URLs aren’t supported), and the source should have CORS policies (Cross Origin Resource Sharing) that permit externally accessing it. This means you can’t stream a video from YouTube or similar sites, as these only allow displaying their content in their branded HTML widget. See See About External Streaming for options and tips.

There are a number of options for streaming video. The simplest option is to use a managed hosting provider like  Vimeo ,  Livepeer Studio  or Serraform where you pay a fee to the provider to manage all the streaming infrastructure.

Read Setting up OBS for successful streaming for tips on how to best stream content into Decentraland.

About Video Files #

The following file formats are supported:

  • .mp4
  • .ogg
  • .webm

Keep in mind that a video file adds to the total size of the scene, which makes the scene take longer to download for players walking into your scene. The video size might also make you go over the scene limitations , as you have a maximum of 15 MB per parcel to use. We recommend compressing the video as much as possible, so that it’s less of a problem.