UNPKG

matrix-js-sdk

Version:

Matrix Client-Server SDK for Javascript

27 lines (26 loc) 722 B
<html> <head> <title>VoIP Test</title> <script src="lib/matrix.js"></script> <script src="browserTest.js"></script> </head> <body> You can place and receive calls with this example. Make sure to edit the constants in <code>browserTest.js</code> first. <div id="config"></div> <div id="result"></div> <button id="call">Place Call</button> <button id="answer">Answer Call</button> <button id="hangup">Hangup Call</button> <div id="videoBackground"> <div id="videoContainer"> <video id="remote"></video> </div> </div> <div id="videoBackground"> <div id="videoContainer"> <video id="local"></video> </div> </div> </body> </html>