1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

Support simulate NACK for RTC publisher

This commit is contained in:
winlin 2020-05-04 17:49:39 +08:00
parent 4d33070c59
commit d125116317
6 changed files with 31 additions and 5 deletions

View file

@ -48,6 +48,9 @@
<label></label>
<video id="rtc_media_player" controls autoplay></video>
<label></label>
SessionID: <span id='sessionid'></span>
<footer>
<p></p>
<p><a href="https://github.com/ossrs/srs">SRS Team &copy; 2020</a></p>
@ -115,6 +118,7 @@
if (data.code) {
reject(data); return;
}
$('#sessionid').html(data.sessionid);
resolve(data.sdp);
}).fail(function(reason){
reject(reason);

View file

@ -48,6 +48,9 @@
<label></label>
<video id="rtc_media_player" width="320" autoplay muted></video>
<label></label>
SessionID: <span id='sessionid'></span>
<footer>
<p></p>
<p><a href="https://github.com/ossrs/srs">SRS Team &copy; 2020</a></p>
@ -125,6 +128,7 @@
if (data.code) {
reject(data); return;
}
$('#sessionid').html(data.sessionid);
resolve(data.sdp);
}).fail(function(reason){
reject(reason);