mdn / mdn/browser-compat-data

api.MediaDevices.ondevicechange - deviceChange Triggering Too Many Times with Bluetooth Device

Open
#12,031 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

browser:safari_ios data:api
Dominant language
JSON
Stars
5.8k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
186

Description

What information was incorrect, unhelpful, or incomplete?

I am using mediaDevices on my app. It works very well in Desktop, mobile and all other platforms. However, If I try to use any bluetooth device ( like airpods ) in my app with ios Safari and ios Chrome, the deviceChange listener keeps triggering all the time.

What did you expect to see?

Not looping in the listener.

Did you test this? If so, how?

I just used some bluetooth devices to test it.

MDN page report details

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported MDN page for api.MediaDevices.ondevicechange and reproduce the behavior using a Bluetooth device in iOS Safari or iOS Chrome. Confirm whether the repeated devicechange events are a browser compatibility issue and document the findings; the report does not identify a repository file or test.

Written by the indexing model from the issue text.

Assessment

Domain
web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.