mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Support simulator link in DEMO page
This commit is contained in:
parent
db503975fb
commit
9614af070c
2 changed files with 12 additions and 0 deletions
|
@ -51,6 +51,9 @@
|
|||
<label></label>
|
||||
SessionID: <span id='sessionid'></span>
|
||||
|
||||
<label></label>
|
||||
Simulator: <a href='#' id='simulator-drop'>Drop</a>
|
||||
|
||||
<footer>
|
||||
<p></p>
|
||||
<p><a href="https://github.com/ossrs/srs">SRS Team © 2020</a></p>
|
||||
|
@ -118,7 +121,10 @@
|
|||
if (data.code) {
|
||||
reject(data); return;
|
||||
}
|
||||
|
||||
var simulator = schema + '//' + urlObject.server + ':' + port + '/rtc/v1/nack/';
|
||||
$('#sessionid').html(data.sessionid);
|
||||
$('#simulator-drop').attr('href', simulator + '?drop=1&username=' + data.sessionid);
|
||||
resolve(data.sdp);
|
||||
}).fail(function(reason){
|
||||
reject(reason);
|
||||
|
|
|
@ -51,6 +51,9 @@
|
|||
<label></label>
|
||||
SessionID: <span id='sessionid'></span>
|
||||
|
||||
<label></label>
|
||||
Simulator: <a href='#' id='simulator-drop'>Drop</a>
|
||||
|
||||
<footer>
|
||||
<p></p>
|
||||
<p><a href="https://github.com/ossrs/srs">SRS Team © 2020</a></p>
|
||||
|
@ -128,7 +131,10 @@
|
|||
if (data.code) {
|
||||
reject(data); return;
|
||||
}
|
||||
|
||||
var simulator = schema + '//' + urlObject.server + ':' + port + '/rtc/v1/nack/';
|
||||
$('#sessionid').html(data.sessionid);
|
||||
$('#simulator-drop').attr('href', simulator + '?drop=1&username=' + data.sessionid);
|
||||
resolve(data.sdp);
|
||||
}).fail(function(reason){
|
||||
reject(reason);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue