-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non conform /onvif/media2_service response leads to Error: Unrecognized configuration #287
Comments
Thank you for the problem report and the offer of a PR. When the library connects to the camera it calls Media1 API GetVideoSources and then matches the Tokens from with the Media2 GetProfiles. GetVideoSources does not have an equivalent function in Media2. I do not know why ONVIF dropped this API, and we cannot ask them as none of us are ONVIF members. GetVideoSources could tell you about all sources, even if there was no Profile assigned to them. Anyway, it may be worth looking at the GetVideoSources code too. |
Here the corresponding GetVideoSources the videoSource.$.token is ''
|
The attached /onvif/media2_service response from YMF52 NM223N AF leads to Error: Unrecognized configuration
Because the VideoSource token not matching with the videoSource.$.token because the Name is used as Token.
Maybe we can relax the check
onvif/lib/cam.js
Line 674 in 73f6e98
If the Name === Token it will also add to appropriateProfiles
PR for this
#288
The text was updated successfully, but these errors were encountered: