File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff 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 ( ) {
Original file line number Diff line number Diff 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 ( ) {
You can’t perform that action at this time.
0 commit comments