Skip to content

Commit

Permalink
Mediastream feature detect (Modernizr#2669)
Browse files Browse the repository at this point in the history
* Create mediastream.js

* added mediarecorder as test

* Update config-all.json

* Added metadata to mediastream.js

* Update mediastream.js

* Removed extra line, added a new tag 'media'

* moved mediastream.js to /webrtc dir

* Update config-all.json
  • Loading branch information
onkardahale authored Oct 14, 2021
1 parent 594c996 commit 049b6ca
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
19 changes: 19 additions & 0 deletions feature-detects/webrtc/mediastream.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*!
{
"name": "MediaStream Recording API",
"property": "mediarecorder",
"caniuse": "mediarecorder",
"tags": ["mediarecorder", "media"],
"authors": ["Onkar Dahale"],
"notes": [{
"name": "MDN Docs",
"href": "https://developer.mozilla.org/en-US/docs/Web/API/MediaStream_Recording_API"
}]
}
!*/
/* DOC
Detects support for the MediaStream Recording API.
*/
define(['Modernizr'], function (Modernizr) {
Modernizr.addTest('mediastream', typeof MediaRecorder !== "undefined" );
});
1 change: 1 addition & 0 deletions lib/config-all.json
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@
"webgl/extensions",
"webrtc/datachannel",
"webrtc/getusermedia",
"webrtc/mediastream",
"webrtc/peerconnection",
"websockets",
"websockets/binary",
Expand Down
1 change: 1 addition & 0 deletions test/browser/integration/caniuse.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ window.caniusecb = function(caniuse) {
localstorage: 'namevalue-storage',
mathml: 'mathml',
mediaqueries: 'css-mediaqueries',
medirecorder: 'mediarecorder',
mediasource: 'mediasource',
messagechannel: 'channel-messaging',
meter: 'progress',
Expand Down

0 comments on commit 049b6ca

Please sign in to comment.