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

USB headphones not recognized by application #97

Open
radumalica opened this issue Dec 19, 2020 · 6 comments
Open

USB headphones not recognized by application #97

radumalica opened this issue Dec 19, 2020 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@radumalica
Copy link

radumalica commented Dec 19, 2020

I have a pair of Turtle Beach P12 USB headphones with microphone, and while trying to access the app , i get "No camera or microphone has been found! Reload page"

The USB headphones are set default to system sound settings.

Tried on other platforms based on HTML5 and they work fine.
I am using Chrome 87.0.4280.88 (latest version as of 19.12.2020)

This is the function which throws error:

`export async function setup() {
console.log("Setup state")
let rtc
try {
rtc = await setupWebRTC(state)

if (!rtc) {
  alert(
    "Your browser does not support the required WebRTC technologies.\n\nPlease reconnect using an up to date web browser.\n\nThanks for your understanding."
  )
  location.assign("/ng/")
  return
}

let { stream, error } = await getUserMedia()
state.error = error
if (stream) {
  // Safari getDevices only works immediately after getUserMedia (bug)
  state.devices = ((await getDevices()) || []).map((d) => {
    log("found device", d)
    return {
      kind: d?.kind?.toLowerCase() || "?",
      deviceId: d?.deviceId,
      label: d.label || "Unknown name",
    }
  })
} else {
  **console.error("Media error", error)**
}`

state.js:228 Media error No camera or microphone has been found! (anonymous) @ state.js:228 l @ runtime.js:63 (anonymous) @ runtime.js:293 (anonymous) @ runtime.js:118 r @ asyncToGenerator.js:3 u @ asyncToGenerator.js:25 Promise.then (async) r @ asyncToGenerator.js:13 u @ asyncToGenerator.js:25 Promise.then (async) r @ asyncToGenerator.js:13 u @ asyncToGenerator.js:25 (anonymous) @ asyncToGenerator.js:32 (anonymous) @ asyncToGenerator.js:21 M @ index.aa97ac82.js?__WB_REVISION__=029b776a1547edb99ac7:1 T @ state.js:201 (anonymous) @ app-main.vue:406 l @ runtime.js:63 (anonymous) @ runtime.js:293 (anonymous) @ runtime.js:118 r @ asyncToGenerator.js:3 u @ asyncToGenerator.js:25 (anonymous) @ asyncToGenerator.js:32 (anonymous) @ asyncToGenerator.js:21 mounted @ app-main.vue:405 ne @ vue.runtime.esm.js:1854 Wn @ vue.runtime.esm.js:4219 insert @ vue.runtime.esm.js:3139 T @ vue.runtime.esm.js:6346 (anonymous) @ vue.runtime.esm.js:6565 (anonymous) @ vue.runtime.esm.js:3948 r @ vue.runtime.esm.js:4066 (anonymous) @ vue.runtime.esm.js:4479 (anonymous) @ vue.runtime.esm.js:4554 Yn @ vue.runtime.esm.js:4310 (anonymous) @ vue.runtime.esm.js:1980 ce @ vue.runtime.esm.js:1906 Promise.then (async) ie @ vue.runtime.esm.js:1933 pe @ vue.runtime.esm.js:1990 tr @ vue.runtime.esm.js:4402 (anonymous) @ vue.runtime.esm.js:4544 (anonymous) @ vue.runtime.esm.js:3969 f @ vue.runtime.esm.js:3647 (anonymous) @ vue.runtime.esm.js:3669 (anonymous) @ vue.runtime.esm.js:336 Promise.then (async) wn @ vue.runtime.esm.js:3692 rn @ vue.runtime.esm.js:3200 dn @ vue.runtime.esm.js:3422 fn @ vue.runtime.esm.js:3353 (anonymous) @ vue.runtime.esm.js:3491 h @ pwa-app.vue?9b4d:1 (anonymous) @ vue.runtime.esm.js:3548 r @ vue.runtime.esm.js:4066 (anonymous) @ vue.runtime.esm.js:4479 nr @ vue.runtime.esm.js:4468 Fn @ vue.runtime.esm.js:4073 (anonymous) @ vue.runtime.esm.js:8415 init @ vue.runtime.esm.js:3118 p @ vue.runtime.esm.js:5978 h @ vue.runtime.esm.js:5925 (anonymous) @ vue.runtime.esm.js:6516 (anonymous) @ vue.runtime.esm.js:3945 r @ vue.runtime.esm.js:4066 (anonymous) @ vue.runtime.esm.js:4479 nr @ vue.runtime.esm.js:4468 Fn @ vue.runtime.esm.js:4073 (anonymous) @ vue.runtime.esm.js:8415 e722 @ pwa.js:61 l @ bootstrap:89 0 @ index.aa97ac82.js?__WB_REVISION__=029b776a1547edb99ac7:1 l @ bootstrap:89 n @ bootstrap:45 (anonymous) @ bootstrap:267 (anonymous) @ index.aa97ac82.js?__WB_REVISION__=029b776a1547edb99ac7:1

@holtwick holtwick added the bug Something isn't working label Dec 19, 2020
@holtwick
Copy link
Owner

Thanks for submitting the issue. On which OS did this happen?

@stefan-janssen
Copy link

stefan-janssen commented Dec 19, 2020 via email

@radumalica
Copy link
Author

Thanks for submitting the issue. On which OS did this happen?

It's on Windows 10 , 64 bit, latest release of Windows 10. Sorry for not inputting the first time.

@holtwick
Copy link
Owner

Great, thanks for the feedback. I'll look into it and try to improve device recognition.

@holtwick holtwick self-assigned this Dec 19, 2020
@holtwick holtwick added this to the Next Release milestone Dec 19, 2020
@radumalica
Copy link
Author

On MacBook Pro 2013, OS Catalina, with embedded mic and speakers, it works great, although with more than 2 people, the laptop feels like it's gonna take off like an airliner :D

I tried today on my gaming PC on which I do not have a webcam, but only the headset above and Windows 10 and wasn't able to use the app. Used on 3 iphones with 14.2 ios (Safari) and Samsung S8 Plus and the app is working fine.

@rgabbo
Copy link

rgabbo commented Jan 24, 2021

Hi. I'm also experiencing same issue while trying to access the app with my jack mic plugged in my PC (HP EliteDesk 800 G2). Tested with both Firefox and Chrome in Windows 10.

The same device works fine in test.webrtc.org.

@holtwick holtwick removed this from the Next Release milestone Apr 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants