OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <!-- |
| 3 * Copyright 2017 The Chromium Authors. All rights reserved. |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 --> |
| 7 <html> |
| 8 <head> |
| 9 |
| 10 |
| 11 <base target="_blank"> |
| 12 |
| 13 <title>Peer connection: audio only</title> |
| 14 |
| 15 |
| 16 </head> |
| 17 |
| 18 <body> |
| 19 |
| 20 <div id="container"> |
| 21 |
| 22 <h1><a href="//webrtc.github.io/samples/" title="WebRTC samples homepage">We
bRTC samples</a> <span>Peer connection: audio only</span></h1> |
| 23 |
| 24 <div id="audio"> |
| 25 <div> |
| 26 <div class="label">Local audio:</div><audio id="audio1" autoplay control
s muted></audio> |
| 27 </div> |
| 28 <div> |
| 29 <div class="label">Remote audio:</div><audio id="audio2" autoplay contro
ls></audio> |
| 30 </div> |
| 31 </div> |
| 32 |
| 33 <div id="buttons"> |
| 34 <select id="codec"> |
| 35 <!-- Codec values are matched with how they appear in the SDP. |
| 36 For instance, opus matches opus/48000/2 in Chrome, and ISAC/16000 |
| 37 matches 16K iSAC (but not 32K iSAC). --> |
| 38 <option value="opus">Opus</option> |
| 39 <option value="ISAC">iSAC 16K</option> |
| 40 <option value="G722">G722</option> |
| 41 <option value="PCMU">PCMU</option> |
| 42 </select> |
| 43 <button id="callButton">Call</button> |
| 44 <button id="hangupButton">Hang Up</button> |
| 45 </div> |
| 46 <div class="graph-container" id="bitrateGraph"> |
| 47 <div>Bitrate</div> |
| 48 <canvas id="bitrateCanvas"></canvas> |
| 49 </div> |
| 50 <div class="graph-container" id="packetGraph"> |
| 51 <div>Packets sent per second</div> |
| 52 <canvas id="packetCanvas"></canvas> |
| 53 </div> |
| 54 |
| 55 <a href="https://github.com/webrtc/samples/tree/gh-pages/src/content/peercon
nection/audio" title="View source for this page on GitHub" id="viewSource">View
source on GitHub</a> |
| 56 |
| 57 </div> |
| 58 |
| 59 |
| 60 <script src="audio.js"></script> |
| 61 <script src="adapter.js"></script> |
| 62 <script src="common.js"></script> |
| 63 </body></html> |
OLD | NEW |