Files
Testing/mongolian1/demos/turnservers/index.html
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

46 lines
1.9 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>Magnoliyan Video Chat</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css">
<link rel="stylesheet" href="../../mgVideoChat/mgVideoChat-1.14.1.css">
</head>
<body>
<div class="container">
<h1>MgVChat <small>TURN</small></h1>
<div class="alert alert-info" role="alert">
If no one else is in the room, please open the same page in other tab to do self-test.
</div>
</div>
<div id="mgVideoChat"></div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.2/js/bootstrap.min.js"></script>
<!-- Video Chat -->
<script src="../../mgVideoChat/mgVideoChat-1.14.1-min.js"></script>
<script src="../common/js/menu.js"></script>
<script>
$(document).ready(function() {
$.get("https://service.xirsys.com/ice",{
ident: "magnoliyan",
secret: "86124bd8-00be-11e7-b3fd-6a59a019203b",
domain: "www.magnoliyan.com",
application: "default",
room: "default",
secure: 1
},
function(data) {
$('#mgVideoChat').mgVideoChat({
wsURL: wsUrlDefault + '?room=1',
rtc: {
pcConfig: {
iceServers: data.d.iceServers
},
mediaConstraints: {"audio": true, "video": true}
}
});
});
});
</script>
</body>
</html>