Bug 175760

Summary: Audio track from getUserMedia has empty label
Product: WebKit Reporter: Aiham Hammami <aiham>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: eric.carlson, jer.noble, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Mac   
OS: macOS 10.12   

Description Aiham Hammami 2017-08-20 21:58:56 PDT
Audio tracks retrieved via getUserMedia have an empty label.


Run this:

  navigator.mediaDevices.getUserMedia({ audio: true, video: true })
    .then(stream => console.log(stream.getTracks().map(track => track.label)))

Expectation: ["Built-in Microphone", "FaceTime HD Camera"]
Actual result: ["", "FaceTime HD Camera"]



My devices all have labels.

When I run this:

  navigator.mediaDevices.enumerateDevices()
    .then(devices => console.log(devices.map(device => device.label)));

I get: ["Built-in Microphone", "Built-in Output", "FaceTime HD Camera"]



Observed while using:
  macOS Sierra 10.12.6 (16G29)
  Release 37 (Safari 11.1, WebKit 12605.1.2)
  Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/605.1.2 (KHTML, like Gecko) Version/11.1 Safari/605.1.2
Comment 1 Radar WebKit Bug Importer 2017-08-21 09:17:41 PDT
<rdar://problem/33992792>
Comment 2 Eric Carlson 2019-06-17 06:00:36 PDT
This has been fixed, I see this when capturing from an external monitor: ["LG UltraFine Display Camera", "LG UltraFine Display Audio"], and this when capturing from a laptop: ["FaceTime HD Camera (Built-in)", "MacBook Pro Microphone"]