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

Add an option for skipping ssl verification in media_player.play_media #2179

Open
mtucker119 opened this issue Mar 21, 2023 · 5 comments
Open

Comments

@mtucker119
Copy link

Describe the problem you have/What new integration you would like

While using media player to play a file from a url, only http is supported, https doesn't work.

I noticed in the documentation for http requests (https://esphome.io/components/http_request.html) there is an option to disable verification of the ssl certificate (verify_ssl: false).

Is it possible to add such an option to media player so we can play media from https urls?

Please describe your use case for this integration and alternatives you've tried:

Use case: play media from a https url.

Additional context

If there is another way to accomplish this I'm open to suggestions. I'm new to esphome so I don't know too much about it.

Thank you!

@dwd1
Copy link

dwd1 commented Oct 7, 2023

+1

@Maco65
Copy link

Maco65 commented Oct 7, 2023

I am not sure if I understand the technical solution requestes, but I am fully supporitng to make internet radio workinfg on I2S media Player with DAC,

@nagyrobi
Copy link
Member

nagyrobi commented Oct 7, 2023

Internet radio works with plain http streams. In the majority of the cases, the same radio station offers the stream in both http and https, but they usually embed it in websites as https to avoid browser securtity warnings, for those who listen on PCs through web browsers.

As a workaround until https gets implemented for media player, it's always worth checking manually (with VLC player for example) if the same stream plays by just removing s from https, and if yes, use that stream instead with ESPHome.

@dwd1
Copy link

dwd1 commented Oct 18, 2023

Thats true.
But in the built-in Radio browser 99% of the streams is https so dont work (easily with the Play button).
Google TTS dont work too because the Home Assistant is behind https.
image
So its a really much needed feature.
esphome/issues#4369 (comment)

@cociweb
Copy link

cociweb commented Dec 19, 2023

Veery frustrating for local tts streams also....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants