Skip to content

MediaTrackSettings binding does not account for unsupported values for a given device #151

Closed
@navaronbracke

Description

@navaronbracke

Currently the MediaTrackSettings bindings define the properties as non-null.

However, when retrieving the settings of a MediaStreamTrack, not all properties are available,
which results in an error when trying to retrieve these properties.

For example, when creating a MediaStreamTrack on my Macbook in Chrome, the settings do not have a facing mode,
despite the binding being a String.

As an example, calling objectKeys() on the track settings object yields:

[aspectRatio, deviceId, frameRate, groupId, height, resizeMode, width]

We should probably make all these nullable?

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