Browse Source
Tested with the real camera reached as 2.54.237.28:8080 (port forward). It reports its services and URIs at its LAN address 192.168.200.118: GetCapabilities XAddrs http://192.168.200.118:8080/onvif/..., stream URIs rtsp://192.168.200.118:554/... toto.php - initialize(): a service URL (media, device, ptz) on another host than the one the device service was reached at is moved to that address, keeping its path (_reachableUri). GetVideoSources went to 192.168.200.118 and failed with "Couldn't connect", and the UI said "Credentials are Wrong!". A service on the same host is unchanged. doCameraOperation.php - Stream / snapshot URIs are split with parse_url (camMediaUri): protocol, port (scheme default if none) and path + query, whatever the host is. Before, only "proto://<ip of the record>" was removed, so with the LAN host the whole URL was stored as the path. The two copies of that code are replaced by the helper. Real camera, request of the camera editor (CID=5, AU=7, CMD=3) through the real login (users table / session): before, status "error" (LAN address unreachable). Now status "ok", credentials, auth mode and PTZ token stored, 3 profiles: mainStream 1920x1080 /Streaming/Channels/101?..., subStream, thirdStream; snapshot http:8080 /onvif-http/snapshot?Profile_n. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139veDo3XyavMuVhdnHcN16pull/2/head
2 changed files with 46 additions and 45 deletions
Loading…
Reference in new issue