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 activecurrentLoop(number) — current loop iteration
Events Emitted:
replayStarted— when replay begins (includes segment info)loopCompleted— after each loop iterationreplayEnded— 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
| Setting | Type | Default | What it does |
|---|---|---|---|
Loop Countloops | Number, 1 to 20 | 1 | Number of times to play through the segment before returning. |
Return ToreturnTo | One of | original | Where to seek after replay finishes. original = stored position, end = segment end, none = stay. |
Restore Playback RaterestoreRate | On or off | On | Restore the original playback rate after the replay finishes. |
Playback RateplaybackRate | Number, 0.1 to 4 | 0.5 | Speed during replay. 0.25 = quarter speed (slow-mo), 0.5 = half speed, 1 = normal, 2 = fast. |
Segment
| Setting | Type | Default | What it does |
|---|---|---|---|
Segment End (seconds)toTime | Number, at least 0 | 5 | Default end time for the replay segment. Can be overridden per-action. |
Segment Start (seconds)fromTime | Number, at least 0 | 0 | Default start time for the replay segment. Can be overridden per-action. |
Audio
| Setting | Type | Default | What it does |
|---|---|---|---|
Transition SoundtransitionSound | Media | - | Optional sound to play when replay starts (media:// URL or external URL). Requires Sound Player plugin. |
Events and actions
Events you can react to
| Event | When it is sent | Data |
|---|---|---|
Replay Endedplugin:mp4e:replay-controller:replayEnded | Fired when the full replay sequence completes (all loops done) |
|
Loop Completedplugin:mp4e:replay-controller:loopCompleted | Fired when one loop iteration of the replay segment finishes |
|
Replay Startedplugin:mp4e:replay-controller:replayStarted | Fired when a replay sequence begins |
|
Actions a rule or the host can call
| Action | What it does | Its settings |
|---|---|---|
Start ReplaystartReplay | Start a slow-motion replay of a video segment. Config fields override plugin defaults. |
|
Stop ReplaystopReplay | Cancel the current replay immediately and return to original position | - |
Variables it provides
| Variable | What it holds | Type and default |
|---|---|---|
Is Replaying{{mp4e:replay-controller:isReplaying}} | Whether a replay sequence is currently active | booleanStarts 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
- v1.0.0November 28, 2026
What changed
Archived before v1.0.1.
- v1.0.1November 28, 2026Current
What changed
Variables say readOnly instead of the older editable flag.