| <!DOCTYPE html> |
| <!-- |
| * Copyright 2017 The Chromium Authors. All rights reserved. |
| * Use of this source code is governed by a BSD-style license that can be |
| * found in the LICENSE file. |
| --> |
| <html> |
| <head> |
| |
| |
| <base target="_blank"> |
| |
| <title>Peer connection: audio only</title> |
| |
| |
| </head> |
| |
| <body> |
| |
| <div id="container"> |
| |
| <h1><a href="//webrtc.github.io/samples/" title="WebRTC samples homepage">WebRTC samples</a> <span>Peer connection: audio only</span></h1> |
| |
| <div id="audio"> |
| <div> |
| <div class="label">Local audio:</div><audio id="audio1" autoplay controls muted></audio> |
| </div> |
| <div> |
| <div class="label">Remote audio:</div><audio id="audio2" autoplay controls></audio> |
| </div> |
| </div> |
| |
| <div id="buttons"> |
| <select id="codec"> |
| <!-- Codec values are matched with how they appear in the SDP. |
| For instance, opus matches opus/48000/2 in Chrome, and ISAC/16000 |
| matches 16K iSAC (but not 32K iSAC). --> |
| <option value="opus">Opus</option> |
| <option value="ISAC">iSAC 16K</option> |
| <option value="G722">G722</option> |
| <option value="PCMU">PCMU</option> |
| </select> |
| <button id="callButton">Call</button> |
| <button id="hangupButton">Hang Up</button> |
| </div> |
| <div class="graph-container" id="bitrateGraph"> |
| <div>Bitrate</div> |
| <canvas id="bitrateCanvas"></canvas> |
| </div> |
| <div class="graph-container" id="packetGraph"> |
| <div>Packets sent per second</div> |
| <canvas id="packetCanvas"></canvas> |
| </div> |
| |
| <a href="https://github.com/webrtc/samples/tree/gh-pages/src/content/peerconnection/audio" title="View source for this page on GitHub" id="viewSource">View source on GitHub</a> |
| |
| </div> |
| |
| |
| <script src="audio.js"></script> |
| <script src="adapter.js"></script> |
| <script src="common.js"></script> |
| </body></html> |