From 142d08a06cbfd372e09ab090a44201e440c8a64f Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Sun, 30 Aug 2020 20:04:02 +0200 Subject: [PATCH] initial commit --- README.md | 14 +++++++++ client.py | 77 ++++++++++++++++++++++++++++++++++++++++++++++++ default.nix | 11 +++++++ requirements.txt | 1 + server.py | 48 ++++++++++++++++++++++++++++++ 5 files changed, 151 insertions(+) create mode 100644 README.md create mode 100644 client.py create mode 100644 default.nix create mode 100644 requirements.txt create mode 100644 server.py diff --git a/README.md b/README.md new file mode 100644 index 0000000..e5a1788 --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +# Beam - a simple video streaming service + +Two scripts for setting up local video streaming (audio might work aswell) + +## Server +Run `server.py` with python3, the only dependency is flask and vlc player. This will open a server on port 5005, listening for these two routes: + +* `/open?host=[&port=]` This will run vlc on the server and attempt to stream from `http://:/stream` (default port is 4040). The response will contain the session ID that can be used to control the playback +* `/close/` will close the vlc player from the specified connection id + + +## Client + +Running `client.py