From 3654a92eb42678d72672794ceaa0478064ba1975 Mon Sep 17 00:00:00 2001 From: Marcus Hanestad Date: Wed, 4 Jun 2025 13:57:47 +0200 Subject: [PATCH] rs-terminal: update examples in README and add playlist json examples --- senders/terminal/README.md | 9 +++++++++ senders/terminal/image_playlist_example.json | 14 ++++++++++++++ senders/terminal/video_playlist_example.json | 14 ++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 senders/terminal/image_playlist_example.json create mode 100644 senders/terminal/video_playlist_example.json diff --git a/senders/terminal/README.md b/senders/terminal/README.md index 437be23..c2b81d0 100644 --- a/senders/terminal/README.md +++ b/senders/terminal/README.md @@ -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 ``` diff --git a/senders/terminal/image_playlist_example.json b/senders/terminal/image_playlist_example.json new file mode 100644 index 0000000..fdc64f1 --- /dev/null +++ b/senders/terminal/image_playlist_example.json @@ -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 +} diff --git a/senders/terminal/video_playlist_example.json b/senders/terminal/video_playlist_example.json new file mode 100644 index 0000000..b0d90b7 --- /dev/null +++ b/senders/terminal/video_playlist_example.json @@ -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 +}