Unfortunately, YouTube has started blocking suspected bot traffic, which prevents YouTubeCast from streaming videos. YouTubeCast Video Server will allow you to continue to use YouTubeCast by setting up your own server to provide video links.
Prerequisites:
- You will need a machine that is capabile of running Docker and has a port that is always accessible to the internet
- Ensure Docker is set up and running on your machine (https://docs.docker.com/get-docker)
- Set up a hostname that can be used to access your machine from the internet (can use a static IP address as well)
To run this application using Docker:
- Create the
docker-compose.yml
file as described below - Run
docker-compose up -d
in the folder where yourdocker-compose.yml
lives - Check the logs using
docker-compose logs -f
to see if there are any errors in your configuration - Add
?videoServer=example.com
to the end of your YouTubeCast feed url (replaceexample.com
with your hostname) - Go to
https://youtubecast.com?setVideoServer=example.com
to save your video server's address in your browser's cookies. All feeds generated from that browser will automatically append?videoServer=example.com
to your feed URLs (replaceexample.com
with your hostname)
services:
youtubecast-videoserver:
image: trevorsharp/youtubecast-videoserver:latest
container_name: youtubecast-videoserver
restart: unless-stopped
ports:
- 80:80
environment:
- STREAMING_ONLY=true
- Create a file named
docker-compose.yml
with the contents above - Leave the STREAMING_ONLY environment variable to true. This will prevent the video server from downloading videos. If you do want videos to be downloaded to the video server, see the README of this project for additional details.