{
  "meta": {
    "canonicalUrl": "https://timetostable.com/feature/screen-capture",
    "bcdVersion": "8.1.11",
    "webFeaturesVersion": "3.48.0"
  },
  "kind": "web-feature",
  "webFeature": {
    "id": "screen-capture",
    "name": "Screen capture",
    "description": "The navigator.mediaDevices.getDisplayMedia() method asks the user to choose a screen or portion of a screen (such as a window) to capture as a media stream.",
    "group": "other",
    "groupName": "other",
    "spec": "https://w3c.github.io/mediacapture-screen-share/",
    "baseline": false,
    "compatCount": 15,
    "cats": [
      "api",
      "html",
      "http"
    ],
    "compatKeysSample": [
      "api.CaptureController",
      "api.CaptureController.CaptureController",
      "api.CaptureController.setFocusBehavior",
      "api.MediaDevices.getDisplayMedia",
      "api.MediaDevices.getDisplayMedia.audio_capture_support",
      "api.MediaDevices.getDisplayMedia.controller_option",
      "api.MediaDevices.getDisplayMedia.monitorTypeSurfaces_option",
      "api.MediaDevices.getDisplayMedia.selfBrowserSurface_option",
      "api.MediaDevices.getDisplayMedia.surfaceSwitching_option",
      "api.MediaDevices.getDisplayMedia.systemAudio_option",
      "api.MediaStreamTrack.applyConstraints.displaySurface_constraint",
      "api.MediaStreamTrack.applyConstraints.logicalSurface_constraint",
      "api.MediaStreamTrack.applyConstraints.suppressLocalAudioPlayback_constraint",
      "html.elements.iframe.allow.display-capture",
      "http.headers.Permissions-Policy.display-capture"
    ],
    "s": {
      "chrome": {
        "v": "72",
        "d": 17925
      },
      "edge": {
        "v": "79",
        "d": 18276
      },
      "firefox": {
        "v": "33",
        "d": 16357
      },
      "safari": {
        "v": "13",
        "d": 18158
      },
      "safari_ios": {
        "v": "27",
        "d": 20710
      }
    }
  },
  "relatedBcdFeatures": [
    {
      "id": "api.CaptureController",
      "cat": "api",
      "mdn": "API/CaptureController",
      "spec": "https://w3c.github.io/mediacapture-screen-share/#dom-capturecontroller",
      "st": 3,
      "wf": "screen-capture",
      "bl": false,
      "s": {
        "chrome": {
          "v": "109",
          "d": 19367
        },
        "edge": {
          "v": "109",
          "d": 19369
        },
        "opera": {
          "v": "95",
          "d": 19389
        }
      }
    },
    {
      "id": "api.CaptureController.CaptureController",
      "cat": "api",
      "mdn": "API/CaptureController/CaptureController",
      "spec": "https://w3c.github.io/mediacapture-screen-share/#dom-capturecontroller-constructor",
      "st": 3,
      "wf": "screen-capture",
      "bl": false,
      "s": {
        "chrome": {
          "v": "109",
          "d": 19367
        },
        "edge": {
          "v": "109",
          "d": 19369
        },
        "opera": {
          "v": "95",
          "d": 19389
        }
      }
    },
    {
      "id": "api.CaptureController.setFocusBehavior",
      "cat": "api",
      "mdn": "API/CaptureController/setFocusBehavior",
      "spec": "https://w3c.github.io/mediacapture-screen-share/#dom-capturecontroller-setfocusbehavior",
      "st": 3,
      "wf": "screen-capture",
      "bl": false,
      "s": {
        "chrome": {
          "v": "109",
          "d": 19367
        },
        "edge": {
          "v": "109",
          "d": 19369
        },
        "opera": {
          "v": "95",
          "d": 19389
        }
      }
    },
    {
      "id": "api.MediaDevices.getDisplayMedia",
      "cat": "api",
      "mdn": "API/MediaDevices/getDisplayMedia",
      "spec": "https://w3c.github.io/mediacapture-screen-share/#dom-mediadevices-getdisplaymedia",
      "st": 1,
      "wf": "screen-capture",
      "bl": false,
      "s": {
        "chrome": {
          "v": "72",
          "d": 17925
        },
        "firefox": {
          "v": "66",
          "d": 17974
        },
        "safari": {
          "v": "13",
          "d": 18158
        },
        "edge": {
          "v": "79",
          "d": 18276
        },
        "safari_ios": {
          "v": "27",
          "d": 20710
        },
        "webview_ios": {
          "v": "27",
          "d": 20710
        },
        "opera": {
          "v": "60",
          "d": 17995
        }
      },
      "notes": [
        {
          "t": "Since Firefox 33 you can capture screen data using <a href=\"https://developer.mozilla.org/docs/Web/API/MediaDevices/getUserMedia\"><code>getUserMedia()</code></a>, with a <code>video</code> constraint called <code>mediaSource</code>. Before 52 it relied on a client-configurable list of allowed sites.",
          "b": [
            "firefox"
          ]
        },
        {
          "t": "Available as a member of <code>Navigator</code> instead of <code>MediaDevices</code>.",
          "b": [
            "edge"
          ]
        },
        {
          "t": "From Chrome Android 72 to 88, this method was exposed, but always failed with <code>NotAllowedError</code>. See <a href=\"https://crbug.com/40418135\">bug 40418135</a>.",
          "b": [
            "chrome_android"
          ]
        },
        {
          "t": "From Firefox Android 66 to 79, this method was exposed, but always failed with <code>NotAllowedError</code>.",
          "b": [
            "firefox_android"
          ]
        },
        {
          "t": "From WebView Android 72 to 88, this method was exposed, but always failed with <code>NotAllowedError</code>. See <a href=\"https://crbug.com/40418135\">bug 40418135</a>.",
          "b": [
            "webview_android"
          ]
        },
        {
          "t": "From Samsung Browser 11.0 to 88, this method was exposed, but always failed with <code>NotAllowedError</code>. See <a href=\"https://crbug.com/40418135\">bug 40418135</a>.",
          "b": [
            "samsunginternet_android"
          ]
        },
        {
          "t": "From Opera Android 51 to 88, this method was exposed, but always failed with <code>NotAllowedError</code>. See <a href=\"https://crbug.com/40418135\">bug 40418135</a>.",
          "b": [
            "opera_android"
          ]
        },
        {
          "t": "From Quest Browser 6.0 to 88, this method was exposed, but always failed with <code>NotAllowedError</code>. See <a href=\"https://crbug.com/40418135\">bug 40418135</a>.",
          "b": [
            "oculus"
          ]
        }
      ]
    },
    {
      "id": "api.MediaDevices.getDisplayMedia.audio_capture_support",
      "cat": "api",
      "mdn": "API/Screen_Capture_API/Using_Screen_Capture#capturing_shared_audio",
      "spec": "https://w3c.github.io/mediacapture-screen-share/#capturing-audio",
      "st": 1,
      "wf": "screen-capture",
      "bl": false,
      "s": {
        "chrome": {
          "v": "74",
          "d": 18009
        },
        "edge": {
          "v": "79",
          "d": 18276
        },
        "opera": {
          "v": "62",
          "d": 18074
        }
      },
      "notes": [
        {
          "t": "On Windows and ChromeOS, the entire system audio can be captured when sharing an entire screen. On Linux and macOS, only the audio of a tab can be captured.",
          "b": [
            "chrome",
            "edge",
            "opera"
          ]
        }
      ]
    },
    {
      "id": "api.MediaDevices.getDisplayMedia.controller_option",
      "cat": "api",
      "spec": "https://w3c.github.io/mediacapture-screen-share/#dom-displaymediastreamoptions-controller",
      "st": 3,
      "wf": "screen-capture",
      "bl": false,
      "s": {
        "chrome": {
          "v": "109",
          "d": 19367
        },
        "edge": {
          "v": "109",
          "d": 19369
        },
        "opera": {
          "v": "95",
          "d": 19389
        }
      }
    },
    {
      "id": "api.MediaDevices.getDisplayMedia.monitorTypeSurfaces_option",
      "cat": "api",
      "spec": "https://w3c.github.io/mediacapture-screen-share/#dom-displaymediastreamoptions-monitortypesurfaces",
      "st": 3,
      "wf": "screen-capture",
      "bl": false,
      "s": {
        "chrome": {
          "v": "119",
          "d": 19661
        },
        "edge": {
          "v": "119",
          "d": 19663
        },
        "opera": {
          "v": "105",
          "d": 19675
        }
      },
      "notes": [
        {
          "t": "Default value = <code>include</code>",
          "b": [
            "chrome",
            "edge",
            "opera"
          ]
        }
      ]
    },
    {
      "id": "api.MediaDevices.getDisplayMedia.selfBrowserSurface_option",
      "cat": "api",
      "spec": "https://w3c.github.io/mediacapture-screen-share/#dom-displaymediastreamoptions-selfbrowsersurface",
      "st": 3,
      "wf": "screen-capture",
      "bl": false,
      "s": {
        "chrome": {
          "v": "112",
          "d": 19451
        },
        "edge": {
          "v": "112",
          "d": 19453
        },
        "opera": {
          "v": "98",
          "d": 19467
        }
      },
      "notes": [
        {
          "t": "Default value = <code>exclude</code>",
          "b": [
            "chrome",
            "edge",
            "opera"
          ]
        },
        {
          "t": "Default value = <code>include</code>",
          "b": [
            "chrome",
            "edge",
            "opera"
          ]
        }
      ]
    },
    {
      "id": "api.MediaDevices.getDisplayMedia.surfaceSwitching_option",
      "cat": "api",
      "spec": "https://w3c.github.io/mediacapture-screen-share/#dom-displaymediastreamoptions-surfaceswitching",
      "st": 3,
      "wf": "screen-capture",
      "bl": false,
      "s": {
        "chrome": {
          "v": "107",
          "d": 19290
        },
        "edge": {
          "v": "107",
          "d": 19292
        },
        "opera": {
          "v": "93",
          "d": 19313
        }
      },
      "notes": [
        {
          "t": "Default value = <code>exclude</code>",
          "b": [
            "chrome",
            "edge",
            "opera"
          ]
        }
      ]
    },
    {
      "id": "api.MediaDevices.getDisplayMedia.systemAudio_option",
      "cat": "api",
      "spec": "https://w3c.github.io/mediacapture-screen-share/#dom-displaymediastreamoptions-systemaudio",
      "st": 3,
      "wf": "screen-capture",
      "bl": false,
      "s": {
        "chrome": {
          "v": "105",
          "d": 19237
        },
        "edge": {
          "v": "105",
          "d": 19236
        },
        "opera": {
          "v": "91",
          "d": 19249
        }
      },
      "notes": [
        {
          "t": "Default value = <code>include</code>",
          "b": [
            "chrome",
            "edge",
            "opera"
          ]
        }
      ]
    },
    {
      "id": "api.MediaStreamTrack.applyConstraints.displaySurface_constraint",
      "cat": "api",
      "mdn": "API/MediaTrackConstraints/displaySurface",
      "spec": "https://w3c.github.io/mediacapture-screen-share/#dom-mediatrackconstraintset-displaysurface",
      "st": 1,
      "wf": "screen-capture",
      "bl": false,
      "s": {
        "chrome": {
          "v": "107",
          "d": 19290
        },
        "safari": {
          "v": "11.1",
          "d": 17633
        },
        "edge": {
          "v": "107",
          "d": 19292
        },
        "chrome_android": {
          "v": "107",
          "d": 19290
        },
        "safari_ios": {
          "v": "11.3",
          "d": 17619
        },
        "webview_android": {
          "v": "107",
          "d": 19290
        },
        "webview_ios": {
          "v": "11.3",
          "d": 17619
        },
        "samsunginternet_android": {
          "v": "21.0",
          "d": 19496
        },
        "opera": {
          "v": "93",
          "d": 19313
        },
        "opera_android": {
          "v": "73",
          "d": 19374
        },
        "oculus": {
          "v": "31.2",
          "d": 19737
        }
      }
    },
    {
      "id": "api.MediaStreamTrack.applyConstraints.logicalSurface_constraint",
      "cat": "api",
      "mdn": "API/MediaTrackConstraints/logicalSurface",
      "spec": "https://w3c.github.io/mediacapture-screen-share/#dom-mediatrackconstraintset-logicalsurface",
      "st": 1,
      "wf": "screen-capture",
      "bl": false,
      "s": {
        "safari": {
          "v": "11.1",
          "d": 17633
        },
        "safari_ios": {
          "v": "11.3",
          "d": 17619
        },
        "webview_ios": {
          "v": "11.3",
          "d": 17619
        }
      }
    },
    {
      "id": "api.MediaStreamTrack.applyConstraints.suppressLocalAudioPlayback_constraint",
      "cat": "api",
      "mdn": "API/MediaTrackConstraints/suppressLocalAudioPlayback",
      "spec": "https://w3c.github.io/mediacapture-screen-share/#dom-mediatrackconstraintset-suppresslocalaudioplayback",
      "st": 3,
      "wf": "screen-capture",
      "bl": false,
      "s": {
        "chrome": {
          "v": "109",
          "d": 19367
        },
        "edge": {
          "v": "109",
          "d": 19369
        },
        "chrome_android": {
          "v": "109",
          "d": 19367
        },
        "webview_android": {
          "v": "109",
          "d": 19367
        },
        "samsunginternet_android": {
          "v": "21.0",
          "d": 19496
        },
        "opera": {
          "v": "95",
          "d": 19389
        },
        "opera_android": {
          "v": "74",
          "d": 19429
        },
        "oculus": {
          "v": "31.2",
          "d": 19737
        }
      }
    },
    {
      "id": "html.elements.iframe.allow.display-capture",
      "cat": "html",
      "spec": "https://w3c.github.io/mediacapture-screen-share/#permissions-policy-integration",
      "st": 1,
      "wf": "screen-capture",
      "bl": false,
      "s": {
        "chrome": {
          "v": "94",
          "d": 18891
        },
        "firefox": {
          "v": "74",
          "d": 18331
        },
        "safari": {
          "v": "13",
          "d": 18158
        },
        "edge": {
          "v": "94",
          "d": 18894
        },
        "chrome_android": {
          "v": "94",
          "d": 18891
        },
        "webview_android": {
          "v": "94",
          "d": 18891
        },
        "samsunginternet_android": {
          "v": "17.0",
          "d": 19116
        },
        "opera": {
          "v": "80",
          "d": 18905
        },
        "opera_android": {
          "v": "66",
          "d": 18976
        },
        "oculus": {
          "v": "18.0",
          "d": 18961
        }
      }
    },
    {
      "id": "http.headers.Permissions-Policy.display-capture",
      "cat": "http",
      "mdn": "HTTP/Reference/Headers/Permissions-Policy/display-capture",
      "spec": "https://w3c.github.io/mediacapture-screen-share/#permissions-policy-integration",
      "st": 3,
      "wf": "screen-capture",
      "bl": false,
      "s": {
        "chrome": {
          "v": "94",
          "d": 18891
        },
        "edge": {
          "v": "94",
          "d": 18894
        },
        "chrome_android": {
          "v": "94",
          "d": 18891
        },
        "webview_android": {
          "v": "94",
          "d": 18891
        },
        "samsunginternet_android": {
          "v": "17.0",
          "d": 19116
        },
        "opera": {
          "v": "80",
          "d": 18905
        },
        "opera_android": {
          "v": "66",
          "d": 18976
        },
        "oculus": {
          "v": "18.0",
          "d": 18961
        }
      }
    }
  ]
}