Skip to content

Potential Issue with Locale-Sensitive Track Label Checks #1194

@lebaudantoine

Description

@lebaudantoine

Select which package(s) are affected

@livekit/components-core

Describe the bug

In mediaDeviceSelect.ts, there are several checks that rely on whether the media track label starts with "Default". However, these labels are locale-dependent and may appear in different languages based on the user's system settings. This makes such checks unreliable across different locales. I'm not sure I fully understand the purpose of this logic, could you clarify the intent behind it?

Reproduction

Set your browser in any other language than English, and console log a local track label.

Logs

System Info

MacOs, Chrome

Severity

annoyance

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions