This is an mpv script as the osc replacement.
This work is done with my oscf tool.
- Make a new folder in ''~~/scripts/'', such as ''~~/scripts/mpv-osc-crimson''.
- Place all the 4 lua files into that folder.
- Put the ''material-design-iconic-font.ttf'' into ''~~/fonts''. You can also download it here.
- Remove or disable other osc scripts. The built-in osc will be disabled by this script automatically.
- Run mpv to test if it works.
There are tow lines of controller, some of which accepts multiple mouse actions. (MBL = mouse button left, MBR = mouse button right)
Top line:
- Seekbar slider: MBL - seek to chosen position, MBR - seek to chosen chapter
- Mute button
- Volume slider
Bottom line:
- Play pause
- Skip back: MBL - 10 second, MBR - 30 seconds
- Skip forward: MBL - 10 seconds, MBR - 30 seconds
- Subtitle: MBL - next subtitle, MBR - previous subtitle
- Audio track: MBL - next audio track, MBR - previous track
- Playlist: MBL - next file, MBR - previous file
- Info
- Minimize
- Fullscreen
- Exit
There a a few user options, which can be found in the ''opts'' section of the main.lua file
opts = {
scale = 1, -- osc render scale
fixedHeight = false, -- true to allow osc scale with window
hideTimeout = 1, -- seconds untile osc hides, negative means never
fadeDuration = 0.5, -- seconds during fade out, negative means never
border = 1, -- border width
size = 26, -- button size
remainingTime = false, -- true to display remaining time instead of duration in the seekbar
maxVolume = 100, -- maximum volume allowed by the volume slider
}