Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/antonlydike/beam
Beam videos over local network
https://github.com/antonlydike/beam
Last synced: about 1 month ago
JSON representation
Beam videos over local network
- Host: GitHub
- URL: https://github.com/antonlydike/beam
- Owner: AntonLydike
- License: mit
- Created: 2020-08-30T18:06:22.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-30T18:07:52.000Z (over 4 years ago)
- Last Synced: 2024-10-30T11:49:32.416Z (3 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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 ` will create a symlink inside an empty temporary directory and start an http server there. Then it will call the `/open` API of the server specified in the `BEAM_SERVER` variable inside. Once evrything is running, it waits for any user input and will then clean up (stop the server, remove temp dir, call close on the server)