According to the documentation for CameraLiveStream, it should be possible to select the resolution of the RTSP stream coming from cameras:
Quoting from the link above:
width: Maximum image resolution width. May also be used as a query parameter in the download URL.
height: Maximum image resolution height. May also be used as a query parameter in the download URL.
It's unclear where those parameters are to be put.
- I tried putting them as query string parameters in the request to the RTSP feed, for example
rtsps://someurl.com/CjY5Y3VKaTZwR3o4Y19YbTVfMF...?auth=g.0.streamingToken&width=800
- in this case, nothing seems to happen: the video feed continues to be 1920x1080 (depending on the combination of width/height I set, sometimes I get a 404 error) - I tried putting it in the
params
dictionary in the request body to theexecuteCommand
request. This gives me a bad request error. - Likewise, putting it as query string in the request to
executeCommand
gives me another API error like bad request.
How does the API work? The documentation doesn't seem to be helping.