![Build Status: Linux](https://travis-ci.org/muaz-khan/DetectRTC.png?branch=master)
A tiny JavaScript library that can be used to detect WebRTC features e.g. system having speakers, microphone or webcam, screen capturing is supported, number of audio/video devices etc.
It is MIT Licenced, which means that you can use it in any commercial/non-commercial product, free of cost.
npm install detectrtc
# or
bower install detectrtc
Proposed NEW API
DetectRTC.isSetSinkIdSupported
DetectRTC.isRTPSenderReplaceTracksSupported
DetectRTC.isORTCSupported
DetectRTC.isRemoteStreamProcessingSupported
# Below API are NOT implemented yet
DetectRTC.browser.googSupportedFlags.googDAEEchoCancellation
DetecRTC.browser.googSupportedFlags.echoCancellation
DetectRTC.isMediaHintsSupportsNewSyntax
Test in LocalHost
node server.js
127.0.0.1:9001
http:
To use it:
<script src="./node_modules/detectrtc/DetectRTC.js"></script>
<script src="//cdn.webrtc-experiment.com/DetectRTC.js"></script>
Check all releases:
How to use it?
DetectRTC.load(function() {
});
Why load
method?
If you're not detecting audio/video input/outupt devices then you can skip this method.
DetectRTC.load
simply makes sure that all devices are captured and valid result is set for relevant properties.
Rules to Contribute
git clone --depth=50 --branch=development git://github.com/muaz-khan/DetectRTC.git muaz-khan/DetectRTC
# install all dependencies
[sudo] npm install
# install grunt for code style verifications
[sudo] npm install grunt-cli
[sudo] npm install grunt
# verify your changes
npm test # or "grunt"
# Success? Make a pull request!
License
DetectRTC.js is released under MIT licence . Copyright (c) Muaz Khan.