Closed martha-johnston closed 1 year ago
Patch and project coverage have no change.
Comparison is base (
b9ce5bb
) 58.83% compared to head (00b05ed
) 58.83%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Description
As it is currently implemented, the only way to identify a device plugged into a Darwin system is by
UID
even though many other forms of identification exist for each device, as explained in this Identifying a Device section of the AVFoundation documentation. This change exposes thelocalizedName
and adds it asName
to theavfoundation.Device
type struct. Additionally, the name is added to thedriver.Info
type struct so that it is included when registering a device.Reasoning
While the
UID
that is currently registered for each device is helpful, it is not human readable, unlikelocalizedName
. For example, when discovering the devices on a MacBook, the built in webcam'sUID
is a string of numbers, letters, and dashes, but it'slocalizedName
is "FaceTime HD Camera". Exposing this name would be helpful for any human interactive use cases, but UID will also remain available for any other use cases in which it is better suited.