Skip to content

Commit 80f0e27

Browse files
committed
Fixed stuck Publish button when republishing in VideoRoom demo
1 parent 051ec15 commit 80f0e27

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

html/videoroomtest.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ $(document).ready(function() {
130130
webrtcState: function(on) {
131131
Janus.log("Janus says our WebRTC PeerConnection is " + (on ? "up" : "down") + " now");
132132
$("#videolocal").parent().parent().unblock();
133+
if(!on)
134+
return;
135+
$('#publish').remove();
133136
// This controls allows us to override the global room bitrate cap
134137
$('#bitrate').parent().parent().removeClass('hide').show();
135138
$('#bitrate a').click(function() {

html/vp9svctest.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ $(document).ready(function() {
129129
webrtcState: function(on) {
130130
Janus.log("Janus says our WebRTC PeerConnection is " + (on ? "up" : "down") + " now");
131131
$("#videolocal").parent().parent().unblock();
132+
if(!on)
133+
return;
134+
$('#publish').remove();
132135
// This controls allows us to override the global room bitrate cap
133136
$('#bitrate').parent().parent().removeClass('hide').show();
134137
$('#bitrate a').click(function() {

0 commit comments

Comments
 (0)