mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-12 21:21:42 +08:00
Updated README; Fixes #114
This commit is contained in:
@@ -65,6 +65,29 @@ browsers, meaning that `http://` can only be used on `localhost`. All other
|
||||
hostnames need to be served via `https://`. You can find more information in the
|
||||
[Chrome M47 WebRTC Release Notes](https://groups.google.com/forum/#!topic/discuss-webrtc/sq5CVmY69sc).
|
||||
|
||||
### Feature-detection of getUserMedia
|
||||
|
||||
QuaggaJS has a hard dependency on
|
||||
[webrtc-adapter](https://github.com/webrtc/adapter) which makes access to
|
||||
`getUserMedia` consistent throughout all browsers. Use this to test your
|
||||
browser's capabilities:
|
||||
|
||||
```javascript
|
||||
if (navigator.mediaDevices && typeof navigator.mediaDevices.getUserMedia === 'function') {
|
||||
// safely access `navigator.mediaDevices.getUserMedia`
|
||||
}
|
||||
```
|
||||
|
||||
The above condition evaluates to:
|
||||
|
||||
| Browser | result |
|
||||
| ------------- |:-------:|
|
||||
| Edge | `true` |
|
||||
| Chrome | `true` |
|
||||
| Firefox | `true` |
|
||||
| IE 11 | `false` |
|
||||
| Safari iOS | `false` |
|
||||
|
||||
## <a name="installing">Installing</a>
|
||||
|
||||
QuaggaJS can be installed using __npm__, __bower__, or by including it with
|
||||
|
||||
Reference in New Issue
Block a user