summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/interfaces/mediacapture-viewport.idl
blob: a9dcf74e17cdf38d3d3cea8c7323c510d07653a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
// (https://github.com/w3c/webref)
// Source: Viewport Capture (https://w3c.github.io/mediacapture-viewport/)

partial interface MediaDevices {
  Promise<MediaStream> getViewportMedia(
      optional ViewportMediaStreamConstraints constraints = {});
};

dictionary ViewportMediaStreamConstraints {
  (boolean or MediaTrackConstraints) video = true;
  (boolean or MediaTrackConstraints) audio = false;
};