Skip to content

Commit

Permalink
Published: [email protected] Closed #87
Browse files Browse the repository at this point in the history
  • Loading branch information
muaz-khan committed Mar 23, 2020
1 parent b2f0884 commit 3da317e
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 14 deletions.
12 changes: 9 additions & 3 deletions DetectRTC.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'use strict';

// Last Updated On: 2019-05-03 5:27:06 AM UTC
// Last Updated On: 2020-03-23 2:31:22 AM UTC

// ________________
// DetectRTC v1.3.9
// DetectRTC v1.4.0

// Open-Sourced: https://github.com/muaz-khan/DetectRTC

Expand Down Expand Up @@ -738,6 +738,12 @@
var alreadyUsedDevices = {};

navigator.enumerateDevices(function(devices) {
MediaDevices = [];

audioInputDevices = [];
audioOutputDevices = [];
videoInputDevices = [];

devices.forEach(function(_device) {
var device = {};
for (var d in _device) {
Expand Down Expand Up @@ -1120,7 +1126,7 @@
DetectRTC.isPromisesSupported = !!('Promise' in window);

// version is generated by "grunt"
DetectRTC.version = '1.3.9';
DetectRTC.version = '1.4.0';

if (typeof DetectRTC === 'undefined') {
window.DetectRTC = {};
Expand Down
6 changes: 3 additions & 3 deletions DetectRTC.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ node npm-test.js
You can even link specific versions:

```html
<script src="https://github.com/muaz-khan/DetectRTC/releases/download/1.3.6/DetectRTC.js"></script>
<script src="https://github.com/muaz-khan/DetectRTC/releases/download/1.4.0/DetectRTC.js"></script>
```

<img src="https://www.webrtc-experiment.com/images/DetectRTC.png" style="width:100%;" />
Expand Down Expand Up @@ -188,11 +188,11 @@ DetectRTC.load(function() {

# `DetectRTC.version`

DetectRTC is supporting `version` property since `1.3.6`.
DetectRTC is supporting `version` property since `1.4.0`.

```javascript
if(DetectRTC.version === '1.3.6') {
alert('We are using DetectRTC version 1.3.6');
if(DetectRTC.version === '1.4.0') {
alert('We are using DetectRTC version 1.4.0');
}
```

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "detectrtc",
"version": "1.3.9",
"version": "1.4.0",
"authors": [
{
"name": "Muaz Khan",
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
Script used to detect WebRTC features!
https://github.com/muaz-khan/DetectRTC#how-to-link
-->
<script src="https://www.webrtc-experiment.com/DetectRTC.js"> </script>
<script src="/DetectRTC.js"> </script>
<script src="https://www.webrtc-experiment.com/screenshot.js"></script>
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
</head>
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "detectrtc",
"preferGlobal": false,
"version": "1.3.9",
"version": "1.4.0",
"author": {
"name": "Muaz Khan",
"email": "[email protected]",
Expand Down

0 comments on commit 3da317e

Please sign in to comment.