mdn/content

MediaDevices#getDisplayMedia(): systemAudio is misleading

Open

#25,307 创建于 2023年3月14日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)Markdown (22,427 fork)batch import
Content:WebAPIarea: MediaStreamshelp wanted

仓库指标

Star
 (8,900 star)
PR 合并指标
 (平均合并 7天 3小时) (30 天内合并 147 个 PR)

描述

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

贡献者指南