Playback Commands

Copy a command and save it as a playback button. Works with both Exo and mpv.

Adding a command button

  1. While playing, open Commands in the control bar.
  2. Tap Add, enter a name and paste the command.
  3. Save it, then tap once to run it.

On mpv: Scripts → Buttons → Add → Add command button. One command per button; do not wrap it in mp.commandv(...).

Playback and loop

Supported by: Exo and mpv. Play, pause, change speed and loop the current file.

ActionCommandNotes
Play / pausecycle pauseToggles between play and pause.
Pauseset pause yesPauses the current video.
Playset pause noResumes playback.
Set speedset speed 1.5Plays at 1.5×.
Adjust speedadd speed 0.25Adds 0.25 to the current speed.
Cycle speedcycle-values speed 1 1.25 1.5 2Cycles and returns to normal speed.
Enable single-file loopset loop-file infRepeats the current video.
Disable single-file loopset loop-file noRestores normal playback order.
Toggle single-file loopcycle-values loop-file no infToggles between normal playback and looping.

pause: yes paused, no playing; supports set, cycle-values and cycle. cycle pause toggles play/pause.

speed: 0.1–5×, 1 is normal; supports set, add and cycle-values. add clamps to the valid range.

loop-file: inf or yes on, no off; supports set and cycle-values. Loops a single file indefinitely; no repeat count or playlist loop.

Volume and sync

Supported by: Exo and mpv. Adjust player volume and audio synchronization.

ActionCommandNotes
Set volumeset volume 60Sets player volume to 60%.
Lower volumeadd volume -10Reduces current player volume by 10.
Cycle volumecycle-values volume 30 60 100Cycles through three volume levels.
Delay audio by 0.2 sset audio-delay 0.2Sets audio delay relative to the video.
Advance audio by 0.1 sadd audio-delay -0.1Reduces the current delay by 0.1 seconds.

volume: 0–100, 0 is muted; supports set, add and cycle-values. Affects player volume only, not system volume; add clamps.

audio-delay: seconds, decimals allowed, 0 clears; supports set, add and cycle-values. Positive delays audio, negative advances it.

Audio track selection

Supported by: Exo and mpv. Switch audio tracks, disable audio, or restore automatic track selection.

ActionCommandNotes
Next audio trackcycle aidcycle aid up also works; the cycle includes disabling audio.
Previous audio trackcycle aid downCycles backwards, also including disabled audio.
Select an audio trackset aid 2The current media must have a playable track with ID 2.
Disable audioset aid noDisables audio; the video keeps playing.
Automatic track selectionset aid autoClears the manual choice and selects again by language preference and default flags.
Cycle only selected trackscycle-values aid 2 4 3Cycles through the listed IDs without including disabled audio.
Cycle selected tracks backwardscycle-values !reverse aid 2 4 3Cycles backwards through the ID list.

audio is an alias of aid and works with the syntax above. Adjust the example IDs for the current media.

An audio track ID is not a list index and may change between media or players. Exo accepts string IDs without spaces or semicolons.

Exo accepts only unique IDs in a cycle-values audio track list; the command is skipped if any ID is missing, unplayable or ambiguous. Use set aid for no and auto.

Subtitle adjustment

Supported by: Exo and mpv. Adjust primary subtitle timing; secondary subtitles are untouched.

ActionCommandNotes
Delay subtitles by 0.2 sset sub-delay 0.2Sets primary subtitle delay.
Advance subtitles by 0.1 sadd sub-delay -0.1Reduces the current delay by 0.1 seconds.
Clear subtitle delayset sub-delay 0Restores original subtitle timing.
Cycle subtitle delaycycle-values sub-delay 0 0.1 0.2Cycles through three delay values.

sub-delay: seconds, decimals allowed, 0 clears; supports set, add and cycle-values. Positive delays primary subtitles, negative advances them; secondary subtitles are unchanged.

Seek and chapters

Supported by: Exo and mpv. Jump to a time, percentage or chapter.

ActionCommandNotes
Forward 90 secondsseek +90Relative seconds by default.
Back 10 secondsseek -10 relativeMoves back from the current position.
Jump to 120 secondsseek 120 absoluteSeconds from the start.
Jump to 10 seconds before the endseek -10 absoluteA negative value counts back from the end.
Jump to the midpointseek 50 absolute-percentA percentage of the full duration.
Forward 10% of the durationseek 10 relative-percentMoves forward by 10% of the full duration.
Jump to the third chapterset chapter 2Chapter indexes start at 0.
Next chapteradd chapter 1Jumps to the next chapter.
Previous chapteradd chapter -1Returns to the chapter start if the current chapter has played for more than 5 seconds.
Cycle the first two chapterscycle-values chapter 0 1The video must contain both chapters.

The source must support seeking; percentages and end-relative seeks need a known duration. Out-of-range values clamp to the start or the end.

chapter: zero based; add accepts only 1 or -1; supports set, add and cycle-values. Requires chapters; set chapter 2 jumps to the third chapter.

Video adjustment

Supported by: Exo and mpv. Adjust video width, height and aspect ratio.

ActionCommandNotes
Widen videoset video-scale-x 1.15Width increases by 15%.
Make video tallerset video-scale-y 1.15Height increases by 15%.
Cycle video heightcycle-values video-scale-y 1 1.15 1.3Cycles height factors.
Set video aspectset video-aspect-override 16:9Overrides the source aspect with 16:9.
Cycle video aspectcycle-values video-aspect-override no 16:9 4:3 2.35:1Cycles source and fixed aspects.
Restore source aspectset video-aspect-override noClears the override while keeping extra scaling and panning.

A scale of 1 removes the extra scaling on that axis while keeping the aspect mode. Zooming in may crop the edges; subtitles, danmaku and the control UI keep their size.

video-scale-x: 0 < factor ≤ 10000, 1 resets; supports set and cycle-values. Width factor; 1.15 is 15% wider.

video-scale-y: 0 < factor ≤ 10000, 1 resets; supports set and cycle-values. Height factor; 1.15 is 15% taller.

video-aspect-override: accepts no, a positive number or w:h such as 16:9, 4:3, 2.35:1; supports set and cycle-values. Overrides the aspect; no restores the source aspect while keeping extra scaling and panning. Fill mode still stretches to the viewport. 0, -1 and out-of-range floats are rejected.

cycle-values

cycle-values supports the shared properties listed in each section. It cycles from the current value and wraps after the last entry. If the current value is not in the list, it starts at the first entry.

Add !reverse to cycle backwards; if the current value is not in the list, it starts at the last entry.

cycle-values !reverse speed 1 1.25 1.5 2

Exo checks the whole list first and skips the command if any value is invalid. Exo's cycle supports pause, aid and audio; audio tracks accept up or down to set the direction. Keep property names lowercase.

Limits

Warning

When nothing is playing or the media does not support the operation, the App shows "the current playback cannot run this command".

Exo supports only the syntax on this page: no semicolon chaining, extra prefixes or seek flags.

Lua scripts and mpv.conf apply to mpv only; you can import your own scripts.

This page describes Exo. mpv follows its native rules, so volume and loop behavior may differ.