Skip to content

Commit

Permalink
Preparing for UI change for seek.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Salgado committed Dec 3, 2020
1 parent 7906ba8 commit 56f8422
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions html/recordplaytest.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ <h3 class="panel-title">Recorder/Playout</h3>
<h3 class="panel-title"><span id="videotitle">Remote Video</span> <button class="btn-xs btn-danger pull-right" autocomplete="off" id="stop">Stop</button></h3>
</div>
<div class="panel-body" id="videobox"></div>
<div class="panel-heading">
<button class="btn-success pull-left" autocomplete="off" id="seek">Seek to timestamp</button><input class="form-control" type="number" id="timestamp"></input>
</div>
</div>
</div>
</div>
Expand Down
4 changes: 3 additions & 1 deletion html/recordplaytest.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ if(window.location.protocol === 'http:')
server = "http://" + window.location.hostname + ":8088/janus";
else
server = "https://" + window.location.hostname + ":8089/janus";

if(window.location.protocol === 'file:')
server = "http://localhost:8088/janus";

var janus = null;
var recordplay = null;
var opaqueId = "recordplaytest-"+Janus.randomString(12);
Expand Down

0 comments on commit 56f8422

Please sign in to comment.