MP4ERequest access
Runs in the backgroundBy MP4E

Replay Controller

Replays a stretch of the video in slow motion when a button or rule asks, then takes viewers back to where they were.

  • Sends 3 events
  • 2 actions for rules and the host
  • Provides 2 variables
  • Start, end, speed and loops are settings, and each call can change them
  • Then goes back to the viewer's place, to the end of the stretch, or stays
  • Stops the replay if the viewer seeks away from it
  • Nothing on screen of its own: a button or a rule starts each replay
Version 1.0.1

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

Preview

This plugin has no picture of its own.

About

Orchestrates video replay sequences for highlights, instant replays, and slow-motion analysis. Triggered via rules or button clicks using the pluginAction system.

How it works: 1. A button click or rule triggers the startReplay action 2. Plugin stores the current video position 3. Seeks to the segment start time 4. Sets playback rate (e.g., 0.25x for slow-motion) 5. Loops the segment the configured number of times 6. Returns to the original position and restores normal speed

Features:

  • Configurable segment (fromTime, toTime)
  • Adjustable playback rate (0.1x to 4x)
  • Multiple loops with per-loop events
  • Three return modes: original position, segment end, or stay
  • Optional transition sound (requires Sound Player plugin)
  • Action config overrides — one plugin instance, multiple replay buttons with different segments
  • Auto-cancels if user manually seeks during replay

Usage in rules: ``json { "type": "pluginAction", "pluginId": "mp4e:replay-controller", "actionId": "startReplay", "config": { "fromTime": 15.5, "toTime": 18.2, "playbackRate": 0.25, "loops": 2 } } ``

Variables Provided:

  • isReplaying (boolean) — whether a replay is currently active
  • currentLoop (number) — current loop iteration

Events Emitted:

  • replayStarted — when replay begins (includes segment info)
  • loopCompleted — after each loop iteration
  • replayEnded — when all loops finish

Great for:

  • Sports: instant replay of goals, hits, catches
  • Education: slow-motion analysis of techniques
  • Entertainment: dramatic slow-mo moments
  • Any video with highlight-worthy segments

Settings

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

Playback

Playback
SettingTypeDefaultWhat it does
Loop CountloopsNumber, 1 to 201Number of times to play through the segment before returning.
Return ToreturnToOne of
  • original
  • end
  • none
originalWhere to seek after replay finishes. original = stored position, end = segment end, none = stay.
Restore Playback RaterestoreRateOn or offOnRestore the original playback rate after the replay finishes.
Playback RateplaybackRateNumber, 0.1 to 40.5Speed during replay. 0.25 = quarter speed (slow-mo), 0.5 = half speed, 1 = normal, 2 = fast.

Segment

Segment
SettingTypeDefaultWhat it does
Segment End (seconds)toTimeNumber, at least 05Default end time for the replay segment. Can be overridden per-action.
Segment Start (seconds)fromTimeNumber, at least 00Default start time for the replay segment. Can be overridden per-action.

Audio

Audio
SettingTypeDefaultWhat it does
Transition SoundtransitionSoundMedia-Optional sound to play when replay starts (media:// URL or external URL). Requires Sound Player plugin.

Events and actions

Events you can react to

EventWhen it is sentData
Replay Endedplugin:mp4e:replay-controller:replayEndedFired when the full replay sequence completes (all loops done)
  • {{eventData.returnedTo}}Where the video was seeked after replay (original, end, none)
Loop Completedplugin:mp4e:replay-controller:loopCompletedFired when one loop iteration of the replay segment finishes
  • {{eventData.totalLoops}}Total loops configured
  • {{eventData.currentLoop}}Which loop just completed (1-based)
Replay Startedplugin:mp4e:replay-controller:replayStartedFired when a replay sequence begins
  • {{eventData.loops}}Total loop count
  • {{eventData.toTime}}Segment end time
  • {{eventData.fromTime}}Segment start time
  • {{eventData.originalTime}}Video position before replay started
  • {{eventData.playbackRate}}Replay speed

Actions a rule or the host can call

ActionWhat it doesIts settings
Start ReplaystartReplayStart a slow-motion replay of a video segment. Config fields override plugin defaults.
  • loopsNumber
  • toTimeNumber
  • fromTimeNumber
  • returnToOne of
  • playbackRateNumber
Stop ReplaystopReplayCancel the current replay immediately and return to original position-

Variables it provides

VariableWhat it holdsType and default
Is Replaying{{mp4e:replay-controller:isReplaying}}Whether a replay sequence is currently activebooleanStarts as OffRead only
Current Loop{{mp4e:replay-controller:currentLoop}}Current loop iteration (0 = not started, 1 = first loop done, etc.)numberStarts 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.0November 28, 2026
    What changed

    Archived before v1.0.1.

  2. v1.0.1November 28, 2026Current
    What changed

    Variables say readOnly instead of the older editable flag.

Works with

Replay Controller · MP4E Marketplace