-
Notifications
You must be signed in to change notification settings - Fork 195
Add media capture (getUserMedia() and enumerateDevices()) #929
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| # Generated from: media-capture.yml | ||
| # Do not edit this file by hand. Edit the source file instead! | ||
|
|
||
| name: Media capture | ||
| description: The `navigator.mediaDevices.getUserMedia()` API requests access to devices that produce audio or video streams, such as microphones or video cameras. | ||
| spec: https://w3c.github.io/mediacapture-main/ | ||
| caniuse: stream | ||
| # Override is needed to fix the Edge version: | ||
| # https://github.com/mdn/browser-compat-data/pull/22913 | ||
| # | ||
| # Firefox support for `enumerateDevices()` also needs an override since lack of | ||
| # output device (a separate feature) is treated as partial implementation in | ||
| # BCD. | ||
| status: | ||
| baseline: high | ||
| baseline_low_date: 2017-09-19 | ||
| baseline_high_date: 2020-03-19 | ||
| support: | ||
| chrome: "53" | ||
| chrome_android: "53" | ||
| edge: "12" | ||
| firefox: "39" | ||
| firefox_android: "39" | ||
| safari: "11" | ||
| safari_ios: "11" | ||
| # This is a reasonable but incomplete subset of basic media capture, but | ||
| # there is a lot more that has been added over time, and possibly additional | ||
| # pieces that should be considered part of the initial feature. | ||
| compat_features: | ||
| - api.MediaDeviceInfo | ||
| - api.MediaDeviceInfo.deviceId | ||
| - api.MediaDeviceInfo.groupId | ||
| - api.MediaDeviceInfo.kind | ||
| - api.MediaDeviceInfo.label | ||
| - api.MediaDevices | ||
| - api.MediaDevices.enumerateDevices | ||
| - api.MediaDevices.getUserMedia | ||
| - api.MediaStream.getAudioTracks | ||
| - api.MediaStream.getTracks | ||
| - api.MediaStream.getVideoTracks | ||
| - api.MediaStreamTrack | ||
| - api.MediaStreamTrack.enabled | ||
| - api.MediaStreamTrack.id | ||
| - api.MediaStreamTrack.kind | ||
| - api.MediaStreamTrack.label | ||
| - api.MediaStreamTrack.stop | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| name: Media capture | ||
| description: The `navigator.mediaDevices.getUserMedia()` API requests access to devices that produce audio or video streams, such as microphones or video cameras. | ||
| spec: https://w3c.github.io/mediacapture-main/ | ||
| caniuse: stream | ||
| # Override is needed to fix the Edge version: | ||
| # https://github.com/mdn/browser-compat-data/pull/22913 | ||
| # | ||
| # Firefox support for `enumerateDevices()` also needs an override since lack of | ||
| # output device (a separate feature) is treated as partial implementation in | ||
| # BCD. | ||
| status: | ||
| baseline: high | ||
| baseline_low_date: 2017-09-19 | ||
| support: | ||
| chrome: "53" | ||
| chrome_android: "53" | ||
| edge: "12" | ||
| firefox: "39" | ||
| firefox_android: "39" | ||
| safari: "11" | ||
| safari_ios: "11" | ||
| # This is a reasonable but incomplete subset of basic media capture, but | ||
| # there is a lot more that has been added over time, and possibly additional | ||
| # pieces that should be considered part of the initial feature. | ||
| compat_features: | ||
| - api.MediaDeviceInfo | ||
| - api.MediaDeviceInfo.deviceId | ||
| - api.MediaDeviceInfo.groupId | ||
| - api.MediaDeviceInfo.kind | ||
| - api.MediaDeviceInfo.label | ||
| - api.MediaDevices | ||
| - api.MediaDevices.enumerateDevices | ||
| - api.MediaDevices.getUserMedia | ||
| - api.MediaStream.getAudioTracks | ||
| - api.MediaStream.getTracks | ||
| - api.MediaStream.getVideoTracks | ||
| - api.MediaStreamTrack | ||
| - api.MediaStreamTrack.enabled | ||
| - api.MediaStreamTrack.id | ||
| - api.MediaStreamTrack.kind | ||
| - api.MediaStreamTrack.label | ||
| - api.MediaStreamTrack.stop |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Chrome, Edge and Safari versions in https://caniuse.com/stream match here, but Firefox doesn't, caniuse says 36. That comes down to me including
enumerateDevices()in this feature, which I think is reasonable, sinceenumerateDevices()on its own doesn't amount to much, it's in support of either media capture or audio device output.