[SOLVED ]Tap_action - open pop-up for streaming the camera in floor plan

Hi experts!
I have set a camera through rtsp that I can see live in other dashboards.
Now I created a dashboard with a flor plan and I have the icon of the camera.
I’d like to be able to click on the icon and get a pop-up with the streaming.

I have the following code:

- type: icon
    icon: mdi:cctv
    entity: camera.cam_veranda
    tap_action:
      action: call-service
      service: camera.play_stream
      service_data:
        entity_id: camera.cam_veranda
    style:
      top: 71%
      left: 75%

but it doesn’t work. I get this error when clicking on the icon:

"Failed to call service camera/play_stream. required key not provided @ data[‘media_player’]

HAForum

Thanks

Hello,

Weirdly enough, I didn’t do anything special but it is working as you described.
I’m opening the more-info, which is a live view
Could it be enough for your needs?

      - entity: camera.bureau
        icon: mdi:cctv
        style:
          height: 24px
          left: 67.5%
          top: 14%
          width: 24px
        tap_action:
          action: more-info
        title: Camera Bureau
        type: icon

Thanks,
I solved as suggested in another forum, removeing tap_action and putting camera_image: camera.cam_veranda

the code that works is the following:

  - type: icon
    icon: mdi:cctv
    entity: camera.cam_veranda
    camera_image: camera.cam_veranda