Skip to content
Snippets Groups Projects
Commit 41214797 authored by lazorfuzz's avatar lazorfuzz
Browse files

Logic fix

parent 60b5ea74
No related branches found
No related tags found
No related merge requests found
......@@ -26,12 +26,12 @@ By default, this enables video, audio, and data channels.
const webrtc = new LioWebRTC({
// The local video ref set within your render function, or the element's id
localVideoEl: localVideoIdOrRef,
// Immediately request camera and mic access.
// Immediately request camera and mic access
autoRequestMedia: true,
// Displays events emitted by the webrtc object in the console.
// Displays events emitted by the webrtc object in the console
debug: true,
// The url for your signaling server
url: 'https://sandbox.simplewebrtc.com:443/',
url: 'https://sandbox.simplewebrtc.com:443/'
});
```
......
......@@ -102,13 +102,7 @@ class LioWebRTC extends WildEmitter {
peer.handleMessage(message);
} else if (peers.length) {
peers.forEach((p) => {
if (message.sid) {
if (p.sid === message.sid) {
p.handleMessage(message);
}
} else {
p.handleMessage(message);
}
p.handleMessage(message);
});
}
});
......
<!DOCTYPE html>
<html>
<head>
<title>SimpleWebRTC Demo</title>
<title>LioWebRTC Demo</title>
</head>
<body>
<h1 id="title">Start a room</h1>
......@@ -37,7 +37,6 @@
</div>
<div id="remotes"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="../out/simplewebrtc-with-adapter.bundle.js"></script>
<script>
// grab the room from the URL
var room = location.search && location.search.split('?')[1];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment