-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
Add native PTZ element #807
Conversation
dermotduffy
commented
Aug 17, 2022
•
edited
Loading
edited
- Closes Native PTZ controls #798
@felipecrs Give this a shot? I'm not sure if this should be a custom element, or 'builtin' but went with element for now. Let me know what you think. You can set |
I'll surely try ASAP. |
It looks great, but I think you should allow the user to select some preset position instead of asking them to make it pixel-based (which is one of the problems I reported: pixel-based locations do not work well when in different DPIs). chrome_usoqQD8A2x.mp4How about a new attribute like And I think it's a good decision keeping it as a custom element. |
I'm not following why you think this will be different in code, unless you want active measurement of some kind. i.e. why can't you just put the positions in %s so that they scale with the card viewport, e.g. have you tried:
PS: If you have a specific test scenario / config let me know.
I definitely could do this, although it felt like a fairly personal choice that presets may just get in the way of. Also I could imagine you need different values depending on where you have the menu, whether you have thumbnails on/off, whether you have the next/previous controls, etc -- much easier to just the user put it wherever they want. |
It works like a charm. I would only suggest to add this to the
Sorry, I didn't realize I could do what you suggested earlier, and that covers all my needs. I would say this PR is ready, and I like it a lot! |
Filtering the issue, it seems to only happen after it loaded once: chrome_gEn527s1Hc.mp4 |
@felipecrs I believe I have fixed those issues. I still found I can very occasionally get it to happen (the PTZ rendering on top of the loading spinner) but that is because JSMPEG appears to be actually reporting the canvas as having been loaded when it is not. I haven't tracked that down further, as I think this is good enough for now. |
Awesome! :D |