Skip to main content

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.

New Webfilecast UI

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

  1. 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.
  2. Run the application:

    For Development: A simple development server can be started using the webfilecast command. 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 gunicorn with eventlet.

    # 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

webfilecast-1.1.3.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

webfilecast-1.1.3-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

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

Hashes for webfilecast-1.1.3.tar.gz
Algorithm Hash digest
SHA256 d843262a08c7ba9dde8f18a336eee1f2d933896e7340e1373bccc5bb37a02dcc
MD5 88830b791e4b0d596d67ee1016bbf564
BLAKE2b-256 019e11c7d96dad7c70e5300351d43481e275729a5784302eeeeee5e08d05fa39

See more details on using hashes here.

Provenance

The following attestation bundles were made for webfilecast-1.1.3.tar.gz:

Publisher: python-publish.yml on vanadinit/webfilecast

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for webfilecast-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6a7af8f2a13a9c1f21077b3e1e8726d7132a5b1152cd16dad37497a9a670c4ae
MD5 bda105ec037b2015966138bbf2e1a9e4
BLAKE2b-256 b0d04e0b89b92c619102e80c3d9f898782fea26110b50f5add358c26cef02b70

See more details on using hashes here.

Provenance

The following attestation bundles were made for webfilecast-1.1.3-py3-none-any.whl:

Publisher: python-publish.yml on vanadinit/webfilecast

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page