cgarwood / homeassistant-fullykiosk

Fully Kiosk Browser integration for Home Assistant
Apache License 2.0
153 stars 27 forks source link

Error playing media on tablet #91

Closed portigui closed 2 years ago

portigui commented 2 years ago

Fire Tablet 8 Fully Kiosk Version: 1.46-fire Home Assistant Version: 2022.3.3

I am attempting to play a wav file via the FK integration's media player. I am using the following script:

  arming_alarm_zones_closed:
    alias: Arming Alarm Zone Open
    sequence:
    - service: tts.google_translate_say
      data:
        entity_id: media_player.porte_cochere_control_panel
        message: "Arming Alarm"
    - delay:
        seconds: 3
    - service: media_player.play_media
      data_template:
        entity_id: media_player.porte_cochere_control_panel
        media_content_id: /local/media/alarm-activating1.wav
        media_content_type: 'music'

The TTS service call that points to the media player works with no issue. Trying to pass in the media to play does not give an error in the HA logs however does give the following error displayed on the tablet screen:

Failed loading sound: Wrong URL or unsupported format?

If I change the media player entity to another one in my house with no other changes, that script works just fine.

Is there a different way that I am supposed to be playing media? Is there a specific format that is supported other than wav? I have tried converting the audio to mp3 and changed the type to audio/mp3 and although it works on the other media player, that also fails the same way on the tablet.

Any assistance would be appreciated.

matbox commented 2 years ago

+1 on this issue.

ingo01978 commented 2 years ago

+1 on this issue.

NvrFollow commented 2 years ago

+1 on this issue.

Jutzul commented 2 years ago

Same issue. +1 on this

big23 commented 2 years ago

+1 on this issue.

cgarwood commented 2 years ago

Please try again with the new integration update (1.0.2) and let me know if this is still an issue.

ronaldvdmeer commented 2 years ago

Same here. I saw this working with a android 11 lenovo tablet but my Xiaomi Pad 5 doesnt work.

cgarwood commented 2 years ago

Closing as the original issue was resolved (Related to an HA update) @ronaldvdmeer if you're still having trouble please open a new issue with additional details. Thanks!