TECH7Fox / sip-hass-card

A SIP client inside home assistant!
MIT License
179 stars 38 forks source link

Option to always use speaker instead of earpiece #94

Open felipecrs opened 1 year ago

felipecrs commented 1 year ago

In my HA companion app when talking to the doorbell it does not make sense to use earpiece since I also want to view video.

TECH7Fox commented 1 year ago

Is it even possible for mobile phones to another output when you have another one connected and set?

felipecrs commented 1 year ago

Well, I'm not sure about it. But what I was thinking was an option to always use speaker, so that it doesn't need to change on the fly.

I'll do some research.

felipecrs commented 1 year ago

https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/setSinkId

This is what I found... but I have no clue how to use it.

felipecrs commented 1 year ago

Ok, setSinkId is NOT available for Chrome on Android, thus Webview (HA Companion App).

I think the only solution is either something in JsSIP or in HA Companion App.