Webfrontend to cast local videos to your chromecast
Project description
Webfilecast
A simple, modern web frontend for Terminalcast to cast local video files to your Chromecast.
Features
- Modern, responsive UI: A clean, dark interface that works on desktop and mobile.
- Searchable File List: Instantly find the file you're looking for, even in large collections. The search supports fuzzy matching and exact phrases in quotes (e.g.,
SomeSeries "Episode 7"). - Natural Sorting: Files are sorted logically, so "Episode 2" comes before "Episode 10".
- Clear Controls: Icon-based buttons for starting the server, playing on Chromecast, opening in browser, and stopping the server.
- Dynamic UI: Buttons are enabled/disabled based on the application state to guide the user.
- Real-time Feedback: See the connection status, server status, and file scan progress at a glance.
Requirements
- Python 3.10+
- Redis Server (running on localhost)
Installation
You can install Webfilecast directly from PyPI:
pip install webfilecast
For a production deployment, it is recommended to install the deployment dependencies as well:
pip install "webfilecast[deployment]"
Usage
-
Set Environment Variables: The application is configured via environment variables.
MOVIE_DIRECTORY: (Required) The absolute path to the directory where your video files are stored.CORS_ORIGINS: (Required) A semicolon-separated list of allowed origins for the web frontend (e.g.,http://localhost:8000;http://127.0.0.1:8000).TERMINALCAST_KNOWN_HOSTS: (Optional) A comma-separated list of known Chromecast IP addresses to speed up discovery.
-
Run the application:
For Development: A simple development server can be started using the
webfilecastcommand. Note: Real-time feedback during the initial file scan may not work correctly with this server.# Example export MOVIE_DIRECTORY="/path/to/your/videos" export CORS_ORIGINS="http://127.0.0.1:5000" flask --app webfilecast run
For Production (Recommended): For the best performance and to ensure all real-time features work correctly, it is highly recommended to use a production-ready WSGI server like
gunicornwitheventlet.# Example export MOVIE_DIRECTORY="/path/to/your/videos" export CORS_ORIGINS="http://your-domain.com" gunicorn --worker-class eventlet -w 1 --bind 0.0.0.0:8000 "webfilecast:app"
Then open your browser and navigate to the specified host and port.
How it works
The application scans the MOVIE_DIRECTORY for video files and caches their metadata in Redis. The web frontend communicates with the Python backend via Socket.IO to select a file, choose an audio stream, and control the casting process. When a video is to be played, a temporary web server is started via terminalcast to stream the file to the Chromecast.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file webfilecast-1.1.3.tar.gz.
File metadata
- Download URL: webfilecast-1.1.3.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d843262a08c7ba9dde8f18a336eee1f2d933896e7340e1373bccc5bb37a02dcc
|
|
| MD5 |
88830b791e4b0d596d67ee1016bbf564
|
|
| BLAKE2b-256 |
019e11c7d96dad7c70e5300351d43481e275729a5784302eeeeee5e08d05fa39
|
Provenance
The following attestation bundles were made for webfilecast-1.1.3.tar.gz:
Publisher:
python-publish.yml on vanadinit/webfilecast
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
webfilecast-1.1.3.tar.gz -
Subject digest:
d843262a08c7ba9dde8f18a336eee1f2d933896e7340e1373bccc5bb37a02dcc - Sigstore transparency entry: 789725425
- Sigstore integration time:
-
Permalink:
vanadinit/webfilecast@2111f613f89ff105f7b2659479dc4194d127134f -
Branch / Tag:
refs/tags/1.1.3 - Owner: https://github.com/vanadinit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@2111f613f89ff105f7b2659479dc4194d127134f -
Trigger Event:
release
-
Statement type:
File details
Details for the file webfilecast-1.1.3-py3-none-any.whl.
File metadata
- Download URL: webfilecast-1.1.3-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a7af8f2a13a9c1f21077b3e1e8726d7132a5b1152cd16dad37497a9a670c4ae
|
|
| MD5 |
bda105ec037b2015966138bbf2e1a9e4
|
|
| BLAKE2b-256 |
b0d04e0b89b92c619102e80c3d9f898782fea26110b50f5add358c26cef02b70
|
Provenance
The following attestation bundles were made for webfilecast-1.1.3-py3-none-any.whl:
Publisher:
python-publish.yml on vanadinit/webfilecast
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
webfilecast-1.1.3-py3-none-any.whl -
Subject digest:
6a7af8f2a13a9c1f21077b3e1e8726d7132a5b1152cd16dad37497a9a670c4ae - Sigstore transparency entry: 789725430
- Sigstore integration time:
-
Permalink:
vanadinit/webfilecast@2111f613f89ff105f7b2659479dc4194d127134f -
Branch / Tag:
refs/tags/1.1.3 - Owner: https://github.com/vanadinit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@2111f613f89ff105f7b2659479dc4194d127134f -
Trigger Event:
release
-
Statement type: