helloworld.html 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="cache-control" content="no-cache">
  6. <meta http-equiv="pragma" content="no-cache">
  7. <meta http-equiv="expires" content="0">
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  9. <link rel="shortcut icon" href="img/kurento.png" type="image/png" />
  10. <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet"/>
  11. <link rel="stylesheet" href="css/kurento.css">
  12. <script src="https://code.jquery.com/jquery-3.4.1.js" ></script>
  13. <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.js"></script>
  14. <script src="https://cdnjs.cloudflare.com/ajax/libs/webrtc-adapter/7.4.0/adapter.min.js"></script>
  15. <script src="js/kurento-client.js"></script>
  16. <script src="js/kurento-utils.js"></script>
  17. <script src="helloworld.js"></script>
  18. <title>Pas2Js Kurento Tutorial 1: Hello World</title>
  19. </head>
  20. <body>
  21. <header>
  22. <div class="navbar navbar-inverse navbar-fixed-top">
  23. <div class="container">
  24. <div class="navbar-header">
  25. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"></button>
  26. <a class="navbar-brand" href=".">Kurento Tutorial in Pas2JS</a>
  27. </div>
  28. <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  29. <ul class="nav navbar-nav navbar-right">
  30. <li>
  31. <a href="helloworld.lpr"><span class="glyphicon glyphicon-file"></span> Source Code</a>
  32. </li>
  33. </ul>
  34. </div>
  35. </div>
  36. </div>
  37. </header>
  38. <div class="container">
  39. <div class="page-header">
  40. <h1>Tutorial 1: Hello World (WebRTC in loopback)</h1>
  41. <ol>
  42. <li>Open this page with a browser compliant with WebRTC (Chrome, Firefox).</li>
  43. <li>Click on <i>Start</i> button.</li>
  44. <li>Grant the access to the camera and microphone. After the SDP negotiation the loopback should start.</li>
  45. <li>Click on <i>Stop</i> to finish the communication.</li>
  46. </ol>
  47. </div>
  48. <div class="row">
  49. <div class="col-md-5">
  50. <div class="form-group">
  51. <label for="edtServer">Kurento Media Server URL</label>
  52. <input type="text" class="form-control" id="edtServer" aria-describedby="lblServer" placeholder="Kurento media server" value="wss://yourserver:8888/kurento">
  53. <small id="lblServer" class="form-text text-muted">Kurento Media Server websocket wss:// URL.</small>
  54. </div>
  55. </div>
  56. </div>
  57. <div class="row">
  58. <div class="col-md-5">
  59. <h3>Local stream</h3>
  60. <video id="videoInput" autoplay width="480px" height="360px" poster="img/webrtc.png"></video>
  61. </div>
  62. <div class="col-md-2">
  63. <a id="start" href="#" class="btn btn-success">
  64. <span class="glyphicon glyphicon-play"></span> Start</a>
  65. <br/>
  66. <br/>
  67. <a id="stop" href="#" class="btn btn-danger">
  68. <span class="glyphicon glyphicon-stop"></span> Stop</a>
  69. </div>
  70. <div class="col-md-5">
  71. <h3>Remote stream</h3>
  72. <div id="cam1">
  73. <video id="videoOutput" autoplay width="480px" height="360px" poster="img/webrtc.png"></video>
  74. </div>
  75. </div>
  76. </div>
  77. <div class="row">
  78. <div id="pasjsconsole" class="col-md-5">
  79. </div>
  80. </div>
  81. </div>
  82. <script type="application/javascript">
  83. rtl.showUncaughtExceptions=true;
  84. rtl.run();
  85. </script>
  86. </body>
  87. </html>