index.html 4.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  4. <meta name="viewport" content="width=device-width, initial-scale=1">
  5. <title>OpenTok Pas2js Demo</title>
  6. <link href="css/app.css" rel="stylesheet" type="text/css">
  7. <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet"/>
  8. <script src="https://code.jquery.com/jquery-3.3.1.js" type="text/javascript"></script>
  9. <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" type="text/javascript"></script>
  10. <script src="https://static.opentok.com/v2/js/opentok.min.js"></script>
  11. <script src="demoopentok.js"></script>
  12. </head>
  13. <body>
  14. <div class="container-fluid">
  15. <div id="Options">
  16. <div class="card">
  17. <div class="card-header" id="OpenTokOptionsHeader">
  18. <h5 class="mb-0">
  19. <button class="btn btn-link" data-toggle="collapse" data-target="#OpenTokOptions" aria-expanded="true" aria-controls="OpenTokOptions">
  20. OpenTok Options
  21. </button>
  22. </h5>
  23. </div>
  24. <div id="OpenTokOptions" class="collapse show" aria-labelledby="OpenTokOptionsHeader" data-parent="#Options">
  25. <div class="card-body">
  26. <div class="row" >
  27. <div class="col-12 panel panel-info">
  28. <div class="panel-body lead">
  29. You must obtain an API Key, Session ID and Token from <a href="http://www.tokbox.com">Tokbox</a>.
  30. You can get a test account for free.
  31. </div>
  32. </div>
  33. </div>
  34. <div class="row mt-4" id="controls">
  35. <div class="col-12">
  36. <div class="form-group">
  37. <label for="edtAPIKey">API Key</label>
  38. <input type="text" class="form-control" id="edtAPIKey" aria-describedby="lblAPIKey" placeholder="OpenTok API Key" value="">
  39. <small id="lblAPIKey" class="form-text text-muted">OpenTok API Key</small>
  40. </div>
  41. </div>
  42. <div class="col-12">
  43. <div class="form-group">
  44. <label for="edtSession">Session ID</label>
  45. <input type="text" class="form-control" id="edtSession" aria-describedby="lblSession" placeholder="OpenTok Session ID" value="">
  46. <small id="lblSession" class="form-text text-muted">Session you want to join.</small>
  47. </div>
  48. </div>
  49. <div class="col-12">
  50. <div class="form-group">
  51. <label for="edtToken">OpenTOK Token</label>
  52. <input type="text" class="form-control" id="edtToken" aria-describedby="lblToken" placeholder="OpenTok token" value="">
  53. <small id="lblToken" class="form-text text-muted">The OpenTok token you got from the OpenTok Server.</small>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. <div id="Buttons" class="row mt-4">
  62. <div class="col-12">
  63. <div class="form-group">
  64. <label class="ml-1 text-bold" for="edtName">Display Name</label>
  65. <input type="text" class="form-control" id="edtName" aria-describedby="lblName" placeholder="Your name" value="">
  66. <small id="lblName" class="form-text text-muted">The name you wish people to see</small>
  67. </div>
  68. </div>
  69. <div class="col-12 ">
  70. <div class="form-check">
  71. <input id="cbPictureInPicture" type="checkbox" class="form-check-input" >
  72. <label class="form-check-label" for="cbPictureInPicture">Picture-in-Picture mode</label>
  73. </div>
  74. </div>
  75. <div class="col-6 col-sm-3 mt-3 ">
  76. <button class="btn btn-primary btn-block" id="btnJoin">Join</button>
  77. </div>
  78. <div class="col-6 col-sm-3 mt-3">
  79. <button class="btn btn-secondary btn-block" id="btnLeave" disabled>Leave</button>
  80. </div>
  81. </div>
  82. <div class="row mt-3 ml-1 text-muted">
  83. Created using &nbsp; <a target="_blank" href="https://wiki.freepascal.org/pas2js">pas2js.</a> &nbsp;&nbsp;
  84. Sources: &nbsp; <a target="new" href="demoopentok.lpr">Program</a>
  85. </div>
  86. <div id="videos" class="row mt-3">
  87. <div id="subscriber" class="col-6"></div>
  88. <div id="publisher" class="col-6"></div>
  89. </div>
  90. </div>
  91. <script>
  92. rtl.run();
  93. </script>
  94. </body>
  95. </html>