Skip to content
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

PTZ controls per stream #749

Closed
didster opened this issue Sep 20, 2024 · 5 comments
Closed

PTZ controls per stream #749

didster opened this issue Sep 20, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@didster
Copy link

didster commented Sep 20, 2024

I'm trying to figure out the best way to have multiple cameras shown on a dashboard using WebRTC card. Obviously multiple cards works fine but takes a lot of space. I tried using swiper-card to host the cards within a single swiper element and that sort of works but the PTZ controls don't work within the swiper and more importantly 50% of the time the swiper doesn't even load. Since that card seems abandoned not updated since 2022 I am looking for alternatives.

Using a single WebRTC card with each camera as a defined stream works great. But my trouble now is all the cameras have PTZ enabled within the card and that config is global to the card itself, not per stream, so I can only configure one of the three cameras PTZ controls to work. Is it possible to either:

a) Some how get the active stream name from the configuration so I can pass this to a script and use it to trigger the correct PTZ action
b) Configure PTZ controls in place per-stream?

Thanks

@AlexxIT AlexxIT added the question Further information is requested label Sep 20, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Sep 20, 2024

I don't like the idea of complicating the logic of this card with linking PTZ settings to streams.
Better look for some custom card that can switch multiple WebRTC cards in one place.

@didster
Copy link
Author

didster commented Sep 20, 2024

Understood. I have tried several and none of them work very well sadly. They either block the ptz controls all together or in the case of custom swipe card seem so buggy and don't load half the time.
But I understand your decision.
Could you just confirm for me if there is any way at all I could get the active stream name in yaml in a way I could pass it to a service?

@AlexxIT AlexxIT added enhancement New feature or request and removed question Further information is requested labels Sep 20, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Sep 20, 2024

I'll think about what I can do

@AlexxIT AlexxIT self-assigned this Sep 20, 2024
@didster
Copy link
Author

didster commented Sep 21, 2024

Ok thank you!

One idea might be to add configuration for a helper name to the stream section

stream_storage: my_helper

And when given, have the card write to that helper the name of the stream when it changes. Then the helper name could then be easily passed to a script and read from there. As an added bonus it could also be used so the card itself could automatically switch to the last active stream when reloaded.

Just a thought

@AlexxIT
Copy link
Owner

AlexxIT commented Oct 12, 2024

I think your problem solved https://github.com/AlexxIT/WebRTC?tab=readme-ov-file#templates

@AlexxIT AlexxIT closed this as completed Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants