Embedded video player for Wiki.js — served from Nextcloud files.
https://video.terbits.xyz/player.html?src=videos/Folder/video.mp4
| Param | Default | Description |
|---|---|---|
| src | — | required Path to video file. e.g. videos/Bluesrooms/Folder/clip.mp4 — spaces → %20 |
| type | auto | optional MIME type override. e.g. video/mp4 · video/webm · video/x-matroska |
| poster | none | optional Thumbnail image URL shown before playback. |
| Param | Default | Description |
|---|---|---|
| autoplay | 0 | optional Set 1 to start playing immediately. Pair with muted=1 (browser policy). |
| muted | 0 | optional Set 1 to start muted. |
| loop | 0 | optional Set 1 to loop the entire video continuously. |
| Param | Default | Description |
|---|---|---|
| start | 0 | optional Start playback at this position in seconds. e.g. start=90 starts at 1:30 · start=3661 starts at 1h 1m 1s |
| Param | Default | Description |
|---|---|---|
| sub | auto | optional Subtitle file path. Auto-detects [videoname].en.srt alongside the video if omitted.Set sub=0 to disable subtitles entirely. |
| Control | Description |
|---|---|
| ▶ / ⏸ | Play / Pause |
| « 10s | Skip backward 10 seconds |
| 10s » | Skip forward 10 seconds |
| 🔊 | Volume slider |
| 0:00 / 0:00 | Current time / duration |
| Progress bar | Seek — shows A-B loop region when set |
| 1× | Playback speed: 0.5 · 0.75 · 1 · 1.25 · 1.5 · 2 |
| ⟳ / A▸B / A↔B | A-B loop (see below) |
| CC | Subtitle toggle |
| ⛶ | Fullscreen |
| Action | Button | Keyboard |
|---|---|---|
| Set point A (loop start) | Click ⟳ once | [ |
| Set point B (loop end) → starts looping | Click A▸B again | ] |
| Reset loop | Click A↔B again | Esc or L |
A (green) and B (red) markers appear on the progress bar with a highlighted region between them.
| Gesture | Action |
|---|---|
| Single tap | Play / Pause |
| Double tap — left third | Seek −10s |
| Double tap — right third | Seek +10s |
<iframe src="https://video.terbits.xyz/player.html?src=videos/Folder/video.mp4" width="100%" height="450" frameborder="0" allowfullscreen allow="autoplay; fullscreen"></iframe>
In Wiki.js editor: insert a Raw HTML block, paste the iframe on a single unbroken line.
/home/toh16/server_data/nextcloud/data/terbits/files/
Files uploaded via Nextcloud (terbits account) are available immediately — no server restart needed.