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:
parent
1eca7df85d
commit
3654a92eb4
3 changed files with 37 additions and 0 deletions
|
@ -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
|
||||
```
|
||||
|
|
14
senders/terminal/image_playlist_example.json
Normal file
14
senders/terminal/image_playlist_example.json
Normal 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
|
||||
}
|
14
senders/terminal/video_playlist_example.json
Normal file
14
senders/terminal/video_playlist_example.json
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue