Video.js Server

Embedded video player for Wiki.js — served from Nextcloud files.

Player URL

https://video.terbits.xyz/player.html?src=videos/Folder/video.mp4

Query Parameters

Video source
ParamDefaultDescription
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.
Playback behaviour
ParamDefaultDescription
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.
Playback position
ParamDefaultDescription
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
Subtitles
ParamDefaultDescription
sub auto optional Subtitle file path. Auto-detects [videoname].en.srt alongside the video if omitted.
Set sub=0 to disable subtitles entirely.

Control Bar

ControlDescription
▶ / ⏸Play / Pause
« 10sSkip backward 10 seconds
10s »Skip forward 10 seconds
🔊Volume slider
0:00 / 0:00Current time / duration
Progress barSeek — shows A-B loop region when set
Playback speed: 0.5 · 0.75 · 1 · 1.25 · 1.5 · 2
⟳ / A▸B / A↔BA-B loop (see below)
CCSubtitle toggle
Fullscreen

A-B Loop

ActionButtonKeyboard
Set point A (loop start)Click ⟳ once[
Set point B (loop end) → starts loopingClick A▸B again]
Reset loopClick A↔B againEsc or L

A (green) and B (red) markers appear on the progress bar with a highlighted region between them.

Keyboard Shortcuts

Space or K Play / Pause
Seek −5s
Seek +5s
Volume +10%
Volume −10%
M Mute toggle
F Fullscreen toggle
[ Set loop A
] Set loop B
L Cycle A-B loop
Esc Reset loop

Touch Gestures (Mobile)

GestureAction
Single tapPlay / Pause
Double tap — left thirdSeek −10s
Double tap — right thirdSeek +10s

Wiki.js Embed (HTML block)

<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.

Video Files Location

/home/toh16/server_data/nextcloud/data/terbits/files/

Files uploaded via Nextcloud (terbits account) are available immediately — no server restart needed.