{
  "meta": {
    "canonicalUrl": "https://timetostable.com/feature/capture-stream-audio-video",
    "bcdVersion": "8.1.11",
    "webFeaturesVersion": "3.48.0"
  },
  "kind": "web-feature",
  "webFeature": {
    "id": "capture-stream-audio-video",
    "name": "captureStream() for <audio> and <video>",
    "description": "The captureStream() method for <audio> and <video> elements returns a MediaStream for the media element's content. You can use this to record media or send it elsewhere, such as a canvas or WebRTC connection.",
    "group": "media-elements",
    "groupName": "Media elements",
    "spec": "https://w3c.github.io/mediacapture-fromelement/#html-media-element-media-capture-extensions",
    "baseline": false,
    "compatCount": 1,
    "cats": [
      "api"
    ],
    "compatKeysSample": [
      "api.HTMLMediaElement.captureStream"
    ],
    "s": {
      "chrome": {
        "v": "62",
        "d": 17456
      },
      "chrome_android": {
        "v": "62",
        "d": 17463
      },
      "edge": {
        "v": "79",
        "d": 18276
      },
      "firefox": {
        "v": "149",
        "d": 20536
      },
      "firefox_android": {
        "v": "149",
        "d": 20536
      }
    }
  },
  "relatedBcdFeatures": [
    {
      "id": "api.HTMLMediaElement.captureStream",
      "cat": "api",
      "mdn": "API/HTMLMediaElement/captureStream",
      "spec": "https://w3c.github.io/mediacapture-fromelement/#dom-htmlmediaelement-capturestream",
      "st": 1,
      "wf": "capture-stream-audio-video",
      "bl": false,
      "s": {
        "chrome": {
          "v": "62",
          "d": 17456
        },
        "firefox": {
          "v": "149",
          "d": 20536
        },
        "edge": {
          "v": "79",
          "d": 18276
        },
        "chrome_android": {
          "v": "62",
          "d": 17463
        },
        "firefox_android": {
          "v": "149",
          "d": 20536
        },
        "webview_android": {
          "v": "62",
          "d": 17463
        },
        "samsunginternet_android": {
          "v": "8.0",
          "d": 17730
        },
        "opera": {
          "v": "49",
          "d": 17478
        },
        "opera_android": {
          "v": "46",
          "d": 17665
        },
        "oculus": {
          "v": "5.0",
          "d": 17713
        }
      },
      "notes": [
        {
          "t": "From Firefox 51, if the source changes from a <code>MediaStream</code> after capture starts, the captured stream data cannot be updated until you switch the source back to a <code>MediaStream</code>.",
          "b": [
            "firefox"
          ]
        },
        {
          "t": "From Firefox 51, if <code>mozCaptureMediaStream()</code> is called on a media element with a <code>MediaStream</code> source, the returned object only contains tracks while the element is playing a <code>MediaStream</code>.",
          "b": [
            "firefox"
          ]
        },
        {
          "t": "From Firefox 51, if <code>mozCaptureMediaStream()</code> is called on a media element with no source media, its compatibility mode is be based on the first source that's added; and the stream will only work with that kind of stream from then on.",
          "b": [
            "firefox"
          ]
        },
        {
          "t": "Before Firefox 51, <code>mozCaptureMediaStream()</code> could not be used on a media element whose source is itself a <code>MediaStream</code> (such as a <code>&lt;video&gt;</code> element presenting a stream being received over an <code>RTCPeerConnection</code>).",
          "b": [
            "firefox"
          ]
        },
        {
          "t": "From Firefox for Android 51, if the source changes from a <code>MediaStream</code> after capture starts, the captured stream data cannot be updated until you switch the source back to a <code>MediaStream</code>.",
          "b": [
            "firefox_android"
          ]
        },
        {
          "t": "From Firefox for Android 51, if <code>mozCaptureMediaStream()</code> is called on a media element with a <code>MediaStream</code> source, the returned object only contains tracks while the element is playing a <code>MediaStream</code>.",
          "b": [
            "firefox_android"
          ]
        },
        {
          "t": "From Firefox for Android 51, if <code>mozCaptureMediaStream()</code> is called on a media element with no source media, its compatibility mode is be based on the first source that's added; and the stream will only work with that kind of stream from then on.",
          "b": [
            "firefox_android"
          ]
        },
        {
          "t": "Before Firefox for Android 51, <code>mozCaptureMediaStream()</code> could not be used on a media element whose source is itself a <code>MediaStream</code> (such as a <code>&lt;video&gt;</code> element presenting a stream being received over an <code>RTCPeerConnection</code>).",
          "b": [
            "firefox_android"
          ]
        }
      ]
    }
  ]
}