Skip to main content

Python module to, stream videos via authenticated sessions using FastAPI

Project description

Video Streaming

Video streaming using FastAPI

Env Variables

Mandatory

  • USERNAME: Any username of choice.
  • PASSWORD: Any password of choice.
  • VIDEO_SOURCE: Source path for videos.

Optional

  • IP_HOSTED: Boolean flag to specify if the API is hosted via public IP
  • VIDEO_HOST: IP address to host the video. Defaults to 127.0.0.1
  • VIDEO_PORT: Port number to host the application. Defaults to 8000
  • WEBSITE: Website to add to CORS configuration.
  • WORKERS: Number of workers to spin up the uvicorn server. Defaults to 1.
  • IP_HOSTED is typically set to True if port forwarding is used to expose the API
  • This will allow the application to host the API on local IP instead of localhost (if VIDEO_HOST is None)
  • This can also be done by specifying the local IP for the env var VIDEO_HOST manually

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

stream_localhost-0.0.0a0-py3-none-any.whl (16.6 kB view hashes)

Uploaded Python 3

stream_localhost-0.0.0.0a0-py3-none-any.whl (7.5 kB view hashes)

Uploaded Python 3

Supported by

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