Skip to content

Commit

Permalink
HTML tiny FIX
Browse files Browse the repository at this point in the history
  • Loading branch information
muaz-khan committed May 6, 2019
1 parent 14a8e62 commit 0f27809
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a href="https://github.com/muaz-khan/DetectRTC"><img alt="DetectRTC" src="https://cdn.webrtc-experiment.com/images/DetectRTC-icon.png" /> DetectRTC.js</a>
<a href="https://github.com/muaz-khan/DetectRTC"><img alt="DetectRTC" src="https://www.webrtc-experiment.com/images/DetectRTC-icon.png" /> DetectRTC.js</a>

# DetectRTC | Is WebRTC Supported In Your Browser?

Expand Down Expand Up @@ -118,11 +118,11 @@ node npm-test.js
<!-- or bower -->
<script src="./bower_components/detectrtc/DetectRTC.js"></script>

<!-- or CDN link (suggested) -->
<script src="https://cdn.webrtc-experiment.com/DetectRTC.js"></script>

<!-- or RawGit (if CDN fails) -->
<script src="https://cdn.rawgit.com/muaz-khan/DetectRTC/master/DetectRTC.js"></script>

<!-- Not Recommended -->
<script src="https://www.webrtc-experiment.com/DetectRTC.js"></script>
```

You can even link specific versions:
Expand All @@ -131,7 +131,7 @@ You can even link specific versions:
<script src="https://github.com/muaz-khan/DetectRTC/releases/download/1.3.6/DetectRTC.js"></script>
```

<img src="https://cdn.webrtc-experiment.com/images/DetectRTC.png" style="width:100%;" />
<img src="https://www.webrtc-experiment.com/images/DetectRTC.png" style="width:100%;" />

# How to use it?

Expand Down Expand Up @@ -254,7 +254,7 @@ if (DetectRTC.MediaDevices[0] && DetectRTC.MediaDevices[0].isCustomLabel) {
Demo: [https://jsfiddle.net/cf90az9q/](https://jsfiddle.net/cf90az9q/)

```html
<script src="https://cdn.webrtc-experiment.com/DetectRTC/CheckDeviceSupport.js"></script>
<script src="https://www.webrtc-experiment.com/DetectRTC/CheckDeviceSupport.js"></script>
<script>
function selectSecondaryCamera() {
checkDeviceSupport(function() {
Expand Down
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<meta name="author" content="Muaz Khan">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

<link rel="stylesheet" href="https://cdn.webrtc-experiment.com/style.css">
<link rel="stylesheet" href="https://www.webrtc-experiment.com/style.css">

<style>
audio {
Expand Down Expand Up @@ -75,8 +75,8 @@
Script used to detect WebRTC features!
https://github.com/muaz-khan/DetectRTC#how-to-link
-->
<script src="https://cdn.webrtc-experiment.com/DetectRTC.js"> </script>
<script src="https://cdn.webrtc-experiment.com/screenshot.js"></script>
<script src="https://www.webrtc-experiment.com/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 Expand Up @@ -489,7 +489,7 @@ <h2 class="header" id="updates" style="color: red; padding-bottom: .1em;"><a hre
<h2 class="header">
How to use <a href="https://github.com/muaz-khan/DetectRTC" target="_blank">DetectRTC</a>?</h2>
<pre class="sh_html">
&lt;script src="https://cdn.WebRTC-Experiment.com/DetectRTC.js"&gt;&lt;/script&gt;
&lt;script src="https://www.webrtc-experiment.com/DetectRTC.js"&gt;&lt;/script&gt;
&lt;script&gt;
// OR otherwise use <a href="https://www.npmjs.com/package/detectrtc">NPM</a>
var DetectRTC = require('detectrtc');
Expand Down Expand Up @@ -558,6 +558,6 @@ <h2 class="header">
<script>
window.useThisGithubPath = 'muaz-khan/DetectRTC';
</script>
<script src="https://cdn.webrtc-experiment.com/commits.js" async> </script>
<script src="https://www.webrtc-experiment.com/commits.js" async> </script>
</body>
</html>
2 changes: 1 addition & 1 deletion simple-demos/select-cameras.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h1>Select & Change Cameras using DetectRTC</h1>
<select id="cameras-list"></select><br>
<video autoplay playsinline style="border-radius: 3px; max-width: 60%;margin: 10px;"></video>

<script src="https://cdn.webrtc-experiment.com/DetectRTC.js"> </script>
<script src="https://www.webrtc-experiment.com/DetectRTC.js"> </script>
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
<script>
var video = document.querySelector('video');
Expand Down
2 changes: 1 addition & 1 deletion simple-demos/simple-demo.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script src="https://cdn.webrtc-experiment.com/DetectRTC.js"> </script>
<script src="https://www.webrtc-experiment.com/DetectRTC.js"> </script>
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
<script>
navigator.mediaDevices.getUserMedia({audio: true, video: true }).then(function(stream) {
Expand Down

0 comments on commit 0f27809

Please sign in to comment.