diff --git a/index.html b/index.html index 153c118..2443842 100644 --- a/index.html +++ b/index.html @@ -300,6 +300,16 @@

MediaDevices Additions

+
  • +

    If options.{{DisplayMediaStreamOptions/windowAudio}} + is set to {{WindowAudioPreferenceEnum/"exclude"}}, and + options.{{DisplayMediaStreamOptions/systemAudio}} + is either unset or set to {{SystemAudioPreferenceEnum/"include"}}, + return a promise [=reject|rejected=] with a newly [=exception/created=] + {{TypeError}}.

    +
  • + +
  • For each [= map/exist | existing =] member in constraints whose value, CS, is a @@ -1399,6 +1409,53 @@

    SelfCapturePreferenceEnum +
    +

    WindowAudioPreferenceEnum +

    + + +

    Describes whether an application invoking + {{MediaDevices/getDisplayMedia()}} would like the user agent to include + window audio among the audio sources offered to the user.

    + +
    +            enum WindowAudioPreferenceEnum {
    +              "include",
    +              "exclude"
    +            };
    +          
    + + + + + + + + + + + + + + + + + + + + + +
    Enumeration description
    include + The application prefers that options to share window audio be + offered to the user for [=display surface/monitor=] [=display + surfaces=].
    exclude + The application prefers that options to share window audio + not be offered to the user.
    +
    + +

    SystemAudioPreferenceEnum

    @@ -1560,6 +1617,7 @@

    DisplayMediaStreamOptions

    (boolean or MediaTrackConstraints) audio = false; CaptureController controller; SelfCapturePreferenceEnum selfBrowserSurface; + WindowAudioPreferenceEnum windowAudio; SystemAudioPreferenceEnum systemAudio; SurfaceSwitchingPreferenceEnum surfaceSwitching; MonitorTypeSurfacesEnum monitorTypeSurfaces; @@ -1630,6 +1688,15 @@

    Dictionary DisplayMediaStreamOptions ignore this hint. +
    windowAudio of type + {{WindowAudioPreferenceEnum}}
    + + +
    If present, signals whether the application would like window + audio to be included among the possible audio sources offered to + the user.
    + +
    systemAudio of type {{SystemAudioPreferenceEnum}}