MP4ERequest access
Runs in the backgroundBy MP4E

Sound Player

Plays sound effects, music cues and background loops when a button or rule asks.

  • Sends 2 events
  • 4 actions for rules and the host
  • Provides 2 variables
  • Plays files from the video's media library or a web address
  • Several sounds at once, each with its own volume, and loops until stopped
  • Pauses when the video pauses and resumes when it plays
  • Runs in the background with nothing on screen: rules start and stop each sound
Version 1.0.2

It opens in the Studio, where you place it on your video.

Preview

This plugin has no picture of its own.

About

A background audio player for sound effects, music cues, transition sounds, and ambient audio. Triggered via rules or button clicks using the pluginAction system.

Features:

  • Play sound effects from media:// URLs (embedded in MP4) or external URLs
  • Multiple concurrent sounds with configurable limit
  • Per-sound volume control
  • Loop mode for ambient/background audio
  • Auto-pause when video pauses, auto-resume on play
  • Named sound IDs for targeted stop/volume control

Actions:

  • play — Play a sound (src, volume, loop, id)
  • stop — Stop a specific sound or all sounds
  • stopAll — Stop everything
  • setVolume — Change volume of specific or all sounds

Usage in rules: ``json { "type": "pluginAction", "pluginId": "mp4e:sound-player", "actionId": "play", "config": { "src": "media://crowd_cheer", "volume": 0.6, "id": "cheer" } } ``

Combine with Replay Controller: ``json [ { "type": "pluginAction", "pluginId": "mp4e:sound-player", "actionId": "play", "config": { "src": "media://replay_whoosh" } }, { "type": "pluginAction", "pluginId": "mp4e:replay-controller", "actionId": "startReplay", "config": { "fromTime": 15.5, "toTime": 18.2, "playbackRate": 0.25 } } ] ``

Variables Provided:

  • isPlaying (boolean) — whether any sound is currently playing
  • activeSounds (number) — count of active sound instances

Events Emitted:

  • soundStarted — when a sound begins playing
  • soundEnded — when a sound finishes naturally (not when stopped)

Great for:

  • Sports: crowd cheers, bat cracks, whistles, replay transition sounds
  • Education: correct/incorrect answer feedback, notification chimes
  • Entertainment: background music, ambient soundscapes, UI feedback
  • E-commerce: add-to-cart sounds, checkout confirmation

Settings

What a creator can set in the Studio, and what a host can set in its overrides.

Audio
SettingTypeDefaultWhat it does
Default VolumedefaultVolumeNumber, 0 to 10.8Default volume for sounds (0 = silent, 1 = full volume). Can be overridden per-action.
Max Concurrent SoundsmaxConcurrentNumber, 1 to 205Maximum number of sounds playing simultaneously. Oldest sound is stopped when limit is reached.

Events and actions

Events you can react to

EventWhen it is sentData
Sound Endedplugin:mp4e:sound-player:soundEndedFired when a sound finishes playing naturally (not when stopped)
  • {{eventData.id}}Sound instance ID
  • {{eventData.src}}Original source URL
Sound Startedplugin:mp4e:sound-player:soundStartedFired when a sound starts playing
  • {{eventData.id}}Sound instance ID
  • {{eventData.src}}Original source URL (media:// or external)

Actions a rule or the host can call

ActionWhat it doesIts settings
Play SoundplayPlay a sound effect. Supports media:// URLs and external URLs.
  • idText
  • srcMedia
  • loopOn or off
  • volumeNumber, 0 to 1
Stop SoundstopStop a specific sound by ID, or stop all sounds if no ID provided.
  • idText
Stop All SoundsstopAllStop all currently playing sounds-
Set VolumesetVolumeChange volume of a specific sound or all sounds.
  • idText
  • volumeNumber, 0 to 1

Variables it provides

VariableWhat it holdsType and default
Is Playing{{mp4e:sound-player:isPlaying}}Whether any sound is currently playingbooleanStarts as OffRead only
Active Sounds{{mp4e:sound-player:activeSounds}}Number of currently playing soundsnumberStarts as 0Read only

What it can reach

This plugin asks for nothing: no network, no reading of the video's analysis, no say over what plays.

Versions

  1. v1.0.2November 28, 2026Current
    What changed

    Variables say readOnly instead of the older editable flag.

  2. v1.0.1August 15, 2026
    What changed

    Fix: sync pause/resume of sound effects from periodic mp4e:playbackState event, not only mp4e:video:play/pause transitions (iframes created mid-playback, e.g. autoplay/soft reload, had stale state until next manual pause/play).

  3. v1.0.0February 27, 2026
    What changed

    Archived version

Works with

Sound Player · MP4E Marketplace