Skip to content

Instantly share code, notes, and snippets.

@tomorgan
Created August 8, 2021 17:49
Show Gist options
  • Save tomorgan/086b3fdd8764546c5bccf3e86474b6e7 to your computer and use it in GitHub Desktop.
Save tomorgan/086b3fdd8764546c5bccf3e86474b6e7 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>Learn ASC Day 16 - Getting Diagnostic Information on a Call</title>
</head>
<body>
<h2>Learn ASC Day 16 - Getting Diagnostic Information on a Call</h2>
<p>Call state <span style="font-weight: bold" id="call-state">-</span></p>
<input id="destination-user-input" type="text" placeholder="ACS User ID to call" value="8:echo123"
style="margin-bottom:1em; width: 300px;" />
<div>
<button id="connect-button" type="button" disabled="false">
Connect
</button>
<button id="disconnect-button" type="button" disabled="true">
Disconnect
</button>
</div>
<hr/>
<h2>Network Messages</h2>
<ul id="NetworkMessages"></ul>
<h2>Media Messages</h2>
<ul id="MediaMessages"></ul>
<hr/>
<p style="font-family: sans-serif">Hi, I'm Tom! I hope you found this code sample useful. This sample code comes from a series of blog posts about Azure Communication Services. Links for all blog posts can be found at <a href="https://learnacs.dev" target="_blank" rel="noopener">learnACS.dev</a>. I blog at <a href="https://blog.thoughtstuff.co.uk">thoughtstuff.co.uk</a>. You can also <a href="https://www.youtube.com/c/TomMorganTS?sub_confirmation=1" target="_blank" rel="noopener">subscribe to my YouTube channel</a> for videos about ACS (and much more!). </p>
<h4>Disclaimer: This is a sample. It’s not meant for you to take and use without fully understanding what it’s doing. It’s definitely not meant for production use. You should understand the risks of hosting your own ACS instance and associated web-based entry point on the public internet before proceeding. If you end up sharing your access tokens, or there’s a bug in the code and you end up with a huge hosting bill, or find yourself unwittingly hosting other people’s rooms, you’re on your own. This sample code is provided under the <a href="https://opensource.org/licenses/MIT">MIT license</a>, which you should read in full (it’s 21 LOC).</h4>
<script src="./bundle.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment