Created
December 13, 2019 12:23
-
-
Save monmee/f6efa56ae39e8c18bff764da9aa5283c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>SkyWay - P2P Media example</title> | |
<link rel="stylesheet" href="../_shared/style.css"> | |
</head> | |
<body> | |
<div class="container"> | |
<h1 class="heading">P2P Media example</h1> | |
<p class="note"> | |
Enter remote peer ID to call. | |
</p> | |
<div class="p2p-media"> | |
<div class="remote-stream"> | |
<video id="js-remote-stream"></video> | |
</div> | |
<div class="local-stream"> | |
<video id="js-local-stream"></video> | |
<p>Your ID: <span id="js-local-id"></span></p> | |
<input type="text" placeholder="Remote Peer ID" id="js-remote-id"> | |
<button id="js-call-trigger">Call</button> | |
<button id="js-close-trigger">Close</button> | |
</div> | |
</div> | |
<div class="chart" id="js-chart"></div> | |
<p class="meta" id="js-meta"></p> | |
</div> | |
<script src="/node_modules/rtcstats-wrapper/dist/rtcstats-wrapper.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/chart.js@2.7.3/dist/Chart.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-streaming@latest/dist/chartjs-plugin-streaming.min.js"></script> | |
<script src="//cdn.webrtc.ecl.ntt.com/skyway-latest.js"></script> | |
<script src="../_shared/key.js"></script> | |
<script type="module" src="./script.js"></script> | |
<script type="module" src="./config.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment