mdn/content

MediaDevices#getDisplayMedia(): systemAudio is misleading

Open

#25.307 aperta il 14 mar 2023

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Markdown (22.427 fork)batch import
Content:WebAPIarea: MediaStreamshelp wanted

Metriche repository

Star
 (8900 star)
Metriche merge PR
 (Merge medio 7g 3h) (147 PR mergiate in 30 g)

Descrizione

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia

What specific section or headline is this issue about?

systemAudio

What information was incorrect, unhelpful, or incomplete?

systemAudio constraint is misleading. Especially on Chrome or Chromium browsers, where window.speechSynthesisSpeak() called on the same Tab is not captured by navigator.mediaDevices.getDisplayMedia() using any constraints - because audio output as a result of a call to window.speechSynthesis.speak() really is output at the system level, not on the current Tab, or any browser Tab.

What did you expect to see?

A note notifying users that Chrome and Chromium browsers on Linux do not capture system audio.

Do you have any supporting links, references, or citations?

Do you have anything more you want to share?

In spite of the specification using the terminology "systemAudio" Chromium and Chromium browser authors refuse https://bugs.chromium.org/p/chromium/issues/detail?id=931749 to support capture of system audio on Linux. Thus the constraint is misleading for user on Linux using Chrome or Chromium.

MDN metadata

Guida contributor