Webcam Resolver is a tool that will return the true streaming URLs of publicly hosted webcams hosted by providers that cycle their URLs.
Some providers cycle the streaming URLs of their webcams to prevent people from directly linking to their streams. This tool will resolve the true streaming URLs of these webcams.
Use this tool as a proxy to get the true streaming URL for a webcam to use in other streaming apps like with Custom Channels in the Channels app.
Webcam Resolver is a simple web service. It has two endpoints that accept two properties, provider
and camera_id
.
The provider is the name of the provider that hosts the webcam. The camera_id is the identifier of the webcam found in the public URL of the webpage hosting the camera.
-
Surfchex
- example URL:
http://www.surfchex.com/cams/avon/
- provider:
surfchex
- example URL:
-
IPCamLive
- example URL:
https://www.ipcamlive.com/6495b042d1523
- provider:
ipcamlive
- example URL:
Use these 2 endpoints to resolve the true streaming URLs of webcams.
This will return the true streaming URL of the webcam as a string.
/camera/surfchex/avon
/camera/ipcamlive/6495b042d1523
This will redirect the request to the true streaming URL of the webcam. Use this endpoint with other applications as the URL of your stream.
/stream/surfchex/avon
/stream/ipcamlive/6495b042d1523
This project was designed to be hosted by Docker. You can run it manually, but it is not recommended.
Run Webcam Resolver with Docker.
docker run -it --name webcam-resolver -p 8000:4567 ghcr.io/maddox/webcam-resolver
webcam-resolver:
image: ghcr.io/maddox/webcam-resolver
container_name: webcam-resolver
ports:
- "8000:4567"
restart: always
Just start the service with the command below:
ruby webcam_resolver.rb