Add subtitles and start offset to playvideo command

This commit is contained in:
2025-05-04 18:21:44 +02:00
parent 7dd61daaf5
commit 0237f79ada
2 changed files with 15 additions and 5 deletions

View File

@@ -126,12 +126,16 @@ curl -X POST http://localhost:8000/control -H "Content-Type: application/json" -
___
- Tell the client to play a video, defined by the filename parameter:
- Tell the client to play a video, defined by the `filename` parameter. It has optional parameters `subtitles`, which should point to a subtitle file and defaults to `null`, and `secondsfromstart` which indicated the timestap at what the video should start, which defaults to `0`:
`
curl -X POST http://localhost:8000/control -H "Content-Type: application/json" -d '{"command": "playvideo", "filename": "stallman.webm"}'
`
`
curl -X POST http://localhost:8000/control -H "Content-Type: application/json" -d '{"command": "playvideo", "filename": "stallman.webm", "subtitles": "stallman.vtt", "secondsfromstart": 69}'
`
___
- Seek the currently played video to a timestamp (in seconds):