Skip to content

Support for MediaStreamTrack.getSettings() #131

@thijstriemstra

Description

@thijstriemstra

Returns the current settings of a MediaStreamTrack, including information such as (for video) width, height or framerate. Available since Chrome 61 and Firefox 50.

See https://www.chromestatus.com/features/5648690194677760, chrome ticket and https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/getSettings

E.g. for a video-track chrome returns:

{
    aspectRatio: 1.3333333333333333,
    deviceId: "622af8a2b4eadd094f29d971f0f7b7b67db0ec434a3a5aed2252881076365272",
    frameRate: 30,
    width: 640,
    height: 480,
    videoKind: "color"
}

firefox:

{
    frameRate: 30,
    height: 480,
    width: 640
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions