WebRTC icon indicating copy to clipboard operation
WebRTC copied to clipboard

Set a default digital PTZ location/zoom

Open xtraorange opened this issue 1 year ago • 8 comments

I believe this is going to be a feature request, but maybe it already exists: is there a way to set a default digital PTZ location/zoom?

Use Case: I have 2 cameras for my kids (2 under 2, weee). The cameras are mounted high to get them out of view and away from kids yanking on things, but I really only want to see their bed so I can check on them. I can obviously use the digital PTZ to get it in the right spot and persist it, but that doesn't affect other users/devices. Ideally, I would just set that default on the card, and then disable the digital PTZ so scrolling doesn't mess with it from mobile.

Is there a way to do this via style configurations? If not, this is a feature request. :)

xtraorange avatar Jun 18 '24 15:06 xtraorange

I think this is not related to this component. It's just some service call. You can use shortcuts for that.

AlexxIT avatar Jun 18 '24 15:06 AlexxIT

I'm talking about the digital PTZ, not the one on the camera. I think the card handles this, since it's specific to the instance of the card

xtraorange avatar Jun 18 '24 15:06 xtraorange

I thought you want to disable it. But now I get your idea.

@dbuezas do you want to add this? :)

AlexxIT avatar Jun 18 '24 16:06 AlexxIT

Sorry too busy at the moment. I hope somebody else picks it up :)

dbuezas avatar Jun 18 '24 17:06 dbuezas

Fair enough. Thanks for taking a look at the request!

xtraorange avatar Jun 18 '24 17:06 xtraorange

Just thought I'd chime in and say that if someone has a go at this it would be neat if it was possible to have one digital PTZ location on one card and another on another card. I'd use the same camera feed and have a zoom on two different things.

quack3d avatar Dec 03 '24 12:12 quack3d

The url of the camera is used to create a persistance key. Maybe you can add a query parameter which hopefuly go2rtc ignores. e.g:

- url: your_stream?position=1

dbuezas avatar Dec 03 '24 15:12 dbuezas

Hm. I'm using entity: camera... and not url:

type: custom:webrtc-camera
entity: camera.kamera_tapo_hd_stream
muted: true

quack3d avatar Dec 03 '24 18:12 quack3d