Kane610 / axis

Python library enabling easy communication with Axis devices and its metadatastream
MIT License
30 stars 14 forks source link

Add authentication support for Companion cameras #527

Open berlund opened 1 week ago

berlund commented 1 week ago

Companion cameras require the Axis-Orig-Sw=true query string parameter in the rtsp url. Otherwise they respond with a 403.

I do not have the possibility with another camera model, so it's unclear if this affects other cameras. In that case AxisDevice might need some parameter to control this or the info could be derived from Vapix.

Kane610 commented 1 week ago

Hello. This is not a good solution. It should be explicit if its a companion camera or ordinary camera. Some sort of instructions to different paths is needed from a central point

berlund commented 1 week ago

Hi!

Could we do it when creating an AxisDevice, e.g. isCompanion=True ?

/ Lars

On 13 Nov 2024, at 18:42, Robert Svensson @.***> wrote:

Hello. This is not a good solution. It should be explicit if its a companion camera or ordinary camera. Some sort of instructions to different paths is needed from a central point — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Kane610 commented 1 week ago

Adding it to the config object would be the correct path. And it should default to false

berlund commented 1 week ago

Updated config.