Stream your videos to your tv without any lag
A robust, zero-dependency Python media server designed to stream video files from a mobile device (Pydroid 3) to a Smart TV.
Standard Python servers (http.server) often crash with BrokenPipeError or ConnectionResetError when used with TVs. This is because TVs attempt to "seek" or "buffer" by requesting specific byte ranges, which the default server doesn't support.
PyCast-Flow implements a custom request handler that:
- ✅ Supports Byte-Range Requests: Smooth seeking and buffering.
- ✅ Multi-threaded: Handles simultaneous connections without hanging.
- ✅ Zero Setup: Just drop the script in your movie folder and run.
(Note: direct streaming only works with mp4 file type other file types will be downloaded depending on your browser. you can also stream mp3 files) (another note: it only works when you are connected to the same wifi. you can use hotspot if you dont have access to wifi)
- Open Pydroid 3 on your Android device.
- Move
main.pyinto your movies directory. - Run the script.
- On your TV, enter your phone's IP:
http://192.168.x.x:8000.
MIT