WebRTC icon indicating copy to clipboard operation
WebRTC copied to clipboard

Feature request: tap_action

Open Eckart0 opened this issue 3 years ago • 18 comments

Hi. Thank you first of all for this quick camera connection. For the integration in Lovelace I have the following request: Is it possible to provide the item "tap_action" - as with "picture-entity" - so that one can then navigate or save the current picture? E.G.:

    tap_action:
      action: navigate
      navigation_path: /yaml-dashboard-2/cam_eg

Greetings, Eckart

Eckart0 avatar Feb 03 '22 17:02 Eckart0

Yes please, this is something I'm missing since it disables basic HassIO ui functionality.

jzielke84 avatar Mar 16 '23 18:03 jzielke84

image https://github.com/junalmeida/homeassistant-webrtc-card

I see it on this version, it is not integrated here? two versions in parallel? THANKS

sigalou avatar Apr 27 '23 19:04 sigalou

I'd love to have tap and hold actions supported, if not for the card itself, perhaps for the shortcuts. As of now, I have a volume shortcut that brings up an iframe pointing to the webui using the browser_mod.pop service, but browser_mod service calls open the popup on every registered browser. If I had the ability to use actions for the shortcut, I'd be able to use the fire-dom-event option, which only opens the popup in the current browser.

nprez83 avatar May 31 '23 15:05 nprez83

+1

Use case is showing multiple cameras on screen and wanting a single click to maximize the the feed to fullscreen. Using the built in fullscreen icon has two issues:

  1. Requires two taps (one to bring up icons, then to click)
  2. Doesn't work with different resolution RTSP streams. My tablet can't handle multiple 4k rtc streams, but can handle a single one, or multiple low res streams. When they are small, there's no need for high res anyway.

Ideally, I would have multiple low res rtsp cards on screen that when tapped would create a fullscreen single stream of the full resolution RTSP stream (which has a different url).

catchdave avatar Jun 22 '23 16:06 catchdave

Check this card. It has a lot of functionality https://github.com/dermotduffy/frigate-hass-card

AlexxIT avatar Jun 22 '23 17:06 AlexxIT

Wow - that card is incredible and has a lot of functionality. It does seem overkill for what I want, but perhaps that is the only option until this feature request gets prioritized...

Either way, thanks for the fast reply!

catchdave avatar Jun 22 '23 17:06 catchdave

Check this card. It has a lot of functionality https://github.com/dermotduffy/frigate-hass-card

That's actually a very good card, but unfortunately it uses javascript to go to full screen, which is not supported on iOS. The full screen button in the WebRTC implementation does work, but cannot be triggered in the frigate card.

hapklaar avatar Dec 02 '23 17:12 hapklaar

+1

embed-me avatar Jan 07 '24 09:01 embed-me

The only way to use confirmation (https://www.home-assistant.io/dashboards/actions/#options-for-confirmation) with text is to use native tap_action (and double_tap_action as well as hold_action).

Therefore please implement the tap_action. I want to show a confirmation like "Do you want to start the 30 seconds recording?" before actually running the service: camera.record.

bcutter avatar Feb 14 '24 21:02 bcutter

Is there any movement on this please? Would love to use browser_mod to popup a high res full-screen stream when I click the card

codemunkie15 avatar Mar 11 '24 15:03 codemunkie15

Looks like no one wants to implement this.

AlexxIT avatar Mar 12 '24 16:03 AlexxIT

Looks like no one wants to implement this.

If anyone can point me in the right direction I would be happy to give it a go?

codemunkie15 avatar Mar 12 '24 21:03 codemunkie15

I've implemented tap_action support in the below PR if you can take a look please.

https://github.com/AlexxIT/WebRTC/pull/668

codemunkie15 avatar Mar 13 '24 23:03 codemunkie15