# User guide

RLC plays local media. Installable package status and removal instructions live
in [DISTRIBUTION.md](DISTRIBUTION.md). Only Linux has playback execution evidence;
packaging definitions do not certify Windows/macOS compatibility. The current
player is not approved for production or hostile-media use.

## Open and control media

Launch the desktop entry, `rlc`, or `rlc gui` for an empty window. Enter a local
path in the path field and select Open, or drop a media file onto the window.
`rlc gui /path/to/movie.mkv` is the desktop integration entry point. The path field
is not a filesystem browser. URL/network inputs are outside the current scope.

```sh
rlc info /path/to/movie.mkv
rlc play /path/to/movie.mkv
rlc play /path/to/movie.mkv --sub /path/to/captions.srt
rlc playlist /path/to/list.m3u
rlc audio /path/to/music.flac
rlc --help
rlc --version
```

The graphical controls provide play/pause/replay, seek, volume, track selection,
Previous/Next and fullscreen. Seek commits when you release the slider. At the
end of the last file the window stays open for replay. `--exit-at-eof` closes it
after completion for smoke tests and benchmarks.

| Key | Action |
| --- | --- |
| Space | Pause/resume |
| Left / Right | Seek backward/forward five seconds |
| Up / Down | Lower/raise volume |
| F | Toggle fullscreen |
| Q / Escape | Quit |

Graphical keyboard shortcuts respect text-entry focus. The `audio` command uses
terminal input and supports pause, seek, volume and quit; fullscreen is a window
control. It requires an interactive terminal. Its current implementation does not
apply configuration settings to terminal playback, even though config is parsed.

## Subtitles and tracks

For an external SRT or ASS/SSA file, use `play --sub FILE`, drop the subtitle file,
or put its path in the field and choose Load subtitles. Select embedded text
tracks using the subtitle selector. Embedded loading scans a separate demux
context with bounded event/font collection, so it can take time on large files.
Bitmap subtitles are unsupported. Fonts and libass affect shaping/rendering;
complete ASS conformance has not been established.

Use the audio selector for available audio tracks. Track changes reset the seek
timeline and audio output. The player does not implement video-track selection.

## Playlists and configuration

M3U/M3U8 files contain UTF-8 local paths, one per entry. Relative entries resolve
against the playlist directory; network URLs are rejected. Blank lines/comments
are ignored. Limits are 1 MiB and 5,000 entries. Playback advances at EOF;
Previous/Next navigate the list and `repeat` permits looping.

RLC reads a TOML config but never saves UI changes. Unknown keys, invalid ranges,
nonregular files and configurations larger than 64 KiB are rejected. Missing
default config uses built-in defaults. `play` and `playlist` accept
`--config /path/to/config.toml`; `gui` uses the default path.

| System | Default path |
| --- | --- |
| Linux | `$XDG_CONFIG_HOME/rlc/config.toml`, otherwise `~/.config/rlc/config.toml` |
| Windows | `%APPDATA%/rlc/config.toml` |
| macOS | `~/Library/Application Support/rlc/config.toml` |

See [config.example.toml](../config.example.toml): volume 0–2 (default 1),
start_paused/repeat booleans, window_width 160–8192 (default 960), and
window_height 120–8192 (default 540). Adjusting volume above 1 may clip audio.
Optional VAAPI builds use `RLC_VAAPI_DEVICE` to select a Linux render device;
frames still pass through CPU memory. See distribution and benchmark docs for
what has actually been tested and the [troubleshooting guide](TROUBLESHOOTING.md)
for diagnostics.
