I've been trying to request a Onvif Snapshot but the GetSnapshotUri() function takes a "Profile Token" as argument.
I've called the function GetProfiles() and it's result is a list of profiles and one of them has a _token = "MediaProfile000"
.
If I just type this token in the GetSnapshotUri() function, it say's:
onvif.exceptions.ONVIFError: Unknown error: Method instance argument after ** must be a mapping, not str
So I tried this way:
profilesList = media.GetProfiles()
firstProfile = profilesList[0]
mediaProfileToken = firstProfile._token
media.GetSnapshotUri(mediaProfileToken)
But guess what?
onvif.exceptions.ONVIFError: Unknown error: Method instance argument after ** must be a mapping, not Text
Please Help