audio-video
Installation
SKILL.md
Audio and Video in Decentraland
Authoring split
AudioSource(local audio files),AudioStream(streaming URLs), andVideoPlayerare all supported inmain-entities.ts— declare the speaker / radio / screen entity fully there with the streaming/playback config.- Volume / play / pause toggles at runtime happen in
src/index.tsviagetMutable.
When to Use Which Media Component
| Need | Component | Key Difference |
|---|---|---|
| Sound effect from a file (click, explosion, footstep) | AudioSource |
Local file, spatial, one-shot or looping |
| Background music or radio stream | AudioStream |
External URL, non-spatial, continuous |
| Video on a surface (screen, billboard) | VideoPlayer + Material.Texture.Video |
Requires a mesh to display on |
Decision flow:
- Is it a local audio file? →
AudioSource - Is it a streaming URL (radio, live audio)? →
AudioStream - Is it video content? →
VideoPlayeron a plane/mesh