Skip to content

Commit

Permalink
fix: fix example for sfu-v2.
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwebrtc committed Nov 17, 2021
1 parent dcf4f1a commit b1ff1a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
6 changes: 3 additions & 3 deletions examples/sfu-v2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ <h3>Pion</h3>
</div>

<!-- Optional JavaScript -->
<script src="js/ion-connector.min.js"></script>
<script src="https://unpkg.com/ion-sdk-js@1.8.0/dist/ion-connector.min.js"></script>
<script>
const localVideo = document.getElementById("local-video");
const remotesDiv = document.getElementById("remotes");

/* eslint-env browser */
const joinBtns = document.getElementById("start-btns");

const connector = new Ion.IonBaseConnector("http://localhost:5551", "token121231231");
const connector = new Ion.Connector("http://localhost:5551", "token121231231");
connector.onopen = function(svc) {
console.log("onopen: service = ", svc.name);
};
Expand All @@ -102,7 +102,7 @@ <h3>Pion</h3>
//const biz = new Ion.IonAppBiz(connector);
//biz.connect();

const sfu = new Ion.IonSDKRTC(connector);
const sfu = new Ion.RTC(connector);

sfu.onstreamevent = function (ev) {
console.log("onstreamevent: state = ", ev.state, ", streams = ", JSON.stringify(ev.streams));
Expand Down
10 changes: 0 additions & 10 deletions examples/sfu-v2/js/ion-connector.min.js

This file was deleted.

0 comments on commit b1ff1a1

Please sign in to comment.