index.html 700 B

1234567891011121314151617181920212223
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>WebRTC Example</title>
  6. <link rel="stylesheet" href="style.css">
  7. <script src="script.js"></script>
  8. </head>
  9. <body>
  10. <h1>WebRTC Example</h1>
  11. <h2>Local ID</h2>
  12. <p id="localId"></p>
  13. <h2>Send an offer through signaling</h2>
  14. <input type="text" id="offerId" placeholder="remote ID" disabled>
  15. <input type="button" id="offerBtn" value="Offer" disabled>
  16. <br>
  17. <h2>Send a message through DataChannel</h2>
  18. <input type="text" id="sendMsg" placeholder="message" disabled>
  19. <input type="button" id="sendBtn" value="Send" disabled>
  20. <br>
  21. </body>
  22. </html>