1
0
Fork 0
mirror of https://gitlab.com/futo-org/fcast.git synced 2025-06-24 21:25:23 +00:00

rs-terminal: update examples in README and add playlist json examples

This commit is contained in:
Marcus Hanestad 2025-06-04 13:57:47 +02:00
parent 1eca7df85d
commit 3654a92eb4
3 changed files with 37 additions and 0 deletions

View file

@ -50,4 +50,13 @@ cat dash.mpd | ./fcast -h localhost play --mime_type application/dash+xml
# Set speed to double
./fcast -h localhost setspeed -s 2.0
# Receive keyboard events
./fcast -h localhost -s KeyDown,KeyUp listen
# Show image playlist
cat image_playlist_example.json | ./fcast -h localhost play --mime_type application/json
# Play from video playlist
cat image_playlist_example.json | ./fcast -h localhost play --mime_type application/json
```

View file

@ -0,0 +1,14 @@
{
"contentType": 0,
"items": [
{
"container": "image/jpeg",
"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/9/90/Everest%2C_Himalayas.jpg/640px-Everest%2C_Himalayas.jpg"
},
{
"container": "image/png",
"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/6/62/NTV7_Testpattern.png/640px-NTV7_Testpattern.png"
}
],
"offset": 0
}

View file

@ -0,0 +1,14 @@
{
"contentType": 0,
"items": [
{
"container": "video/webm",
"url": "https://upload.wikimedia.org/wikipedia/commons/7/70/EVEREST.webm"
},
{
"container": "image/png",
"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/6/62/NTV7_Testpattern.png/640px-NTV7_Testpattern.png"
}
],
"offset": 0
}