Viewing Watcher cameras on IPTVPORTAL set-top boxes, TVs and apps¶
With a project-specific IPTVPORTAL integration, cameras from an existing Watcher installation can be opened on supported IPTVPORTAL set-top boxes, TVs and apps. The external playback authentication configuration described below does not change access rules for other Watcher cameras.
Before configuration, prepare a working Watcher installation, a camera with an archive and administrator access to IPTVPORTAL. Subscriber devices must reach the streamer address, and Watcher server components must reach the IPTVPORTAL authentication service.
Watcher settings¶
External authentication is set with the WATCHER_CUSTOM_AUTH environment variable. For a package installation, add it to /etc/watcher/watcher.conf:
WATCHER_CUSTOM_AUTH=http://DOMAIN.iptvportal.ru/auth/flussonic/arescrypt/
Replace DOMAIN with your IPTVPORTAL domain name. For locally installed middleware, use its address:
WATCHER_CUSTOM_AUTH=http://SERVER_MIDDLEWARE/auth/flussonic/arescrypt/
The file uses NAME=value format without a semicolon. For a container installation, set the same environment variable for Watcher services through the deployment configuration.
Restart the Watcher services that use this configuration. For a package installation:
systemctl restart watcher-vms watcher-go
Watcher adds the specified URL to the playback authentication backends in Central. The external IPTVPORTAL handler checks the subscriber token; regular Watcher camera authentication also remains in the configuration. Do not replace an IPTVPORTAL token with a Watcher administrator password or API key.
IPTVPORTAL settings¶
In the IPTVPORTAL administration panel, open Media → Webcams and add a camera. Field labels may depend on the middleware version; use the following values for the flussonic arescrypt scheme:
- Name — camera label in the subscriber app.
- mrl — live stream address:
http://STREAMER/CAMERA_ID/mpegts. - auth —
flussonic arescrypt. - timeshift url — archive base address:
http://STREAMER/CAMERA_ID. - Archive depth — interval available in IPTVPORTAL, for example
1 days, 0:00:00. It does not create recordings or increase actual DVR depth in Watcher. - timeshift auth —
flussonic arescrypt. - Viewing devices — subscriber device types permitted to view.
- Categories — navigation sections where the camera appears.
- Packages — services that include the camera.
STREAMER is the subscriber-accessible address of the watcher-streamer ingesting the camera. CAMERA_ID is the technical stream name in the camera URL, not its display name. If using HTTPS, specify it in playback addresses according to your server configuration.
Create a user in IPTVPORTAL and assign a package containing this camera. IPTVPORTAL generates the token for the selected authentication method; do not manually enter it as a shared value in mrl.
Verification¶
Open an IPTVPORTAL client as a test subscriber and check live video, then an available archive interval. Separately check a subscriber without the camera package: access must not be granted.
If video is unavailable, check the stream address, camera inclusion in the package, availability of the external authentication handler and the applied Watcher configuration. If live video works but the archive does not, check timeshift url, actual DVR recordings and archive depth in IPTVPORTAL.