Skip to content

WebRTC cameras open an audio stream and hold it #23230

@wtmh

Description

@wtmh

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.
  • I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

Describe the issue you are experiencing

If I have a Home Assistant tab open in a browser (Tested in Firefox and Edge.), if that dashboard contains any Picture Entity cards that tie onto cameras, it starts and holds an audio stream on that tab whether audio is being sent or not. This disrupts Bluetooth Multipoint 100%.

'Same goes for the mobile app. If the mobile application is open on my phone, Bluetooth audio will not hope back to my PC.

I can consistently reproduce this issue by starting audio on Device 1 has that HA open with a camera, then trying to listen to audio on Device 2— nothing. The very instant I close Home Assistant the audio hops to the correct device.

Conclusion? The new WebRTC camera rigging is lighting up an audio channel– utilized or not.

Describe the behavior you expected

I expect Home Assistant WebRTC cameras to not wrest control of an audio channel unless I choose to.

Here's the problem: I use Bluetooth Multipoint. What it does is hops between two different devices depending on the one that is playing audio. The benefit to this is one can throw on a Bluetooth headset, play audio from their PC, pause any audio, and then play audio from the cell phone instead. This is more-or-less how I get my meeting notifications.

Unfortunately, Multipoint is currently fully automatic, it is not possible for a user to choose which audio device they want play in their headphones. "Whichever one was playing first and is playing now."

Steps to reproduce the issue

  1. Connect a Bluetooth Multipoint device to two different devices. A PC and a cell phone will be easiest, I'd imagine.
  2. Open a Home Assistant tab/instance with a dashboard that has a camera on it.
  3. Verify no other audio in playing on the same device Home Assistant is running on.
  4. Start up a different audio stream on– in this example– your cell phone. Notice that you hear nothing.
  5. Close the HA on the PC— note the audio instantly jumps to the correct device on the phone.

What version of Home Assistant Core has the issue?

2024.12.1

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Edge 131.0.2903.86

Which operating system are you using to run this browser?

Windows 10 Build 19045.5131

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions