File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -342,15 +342,16 @@ function () {
342
342
343
343
case 3 :
344
344
this . say ( "Scene successfully switched to \"" . concat ( sceneName , "\"" ) ) ;
345
- _context3 . next = 9 ;
345
+ _context3 . next = 10 ;
346
346
break ;
347
347
348
348
case 6 :
349
349
_context3 . prev = 6 ;
350
350
_context3 . t0 = _context3 [ "catch" ] ( 0 ) ;
351
351
log . error ( _context3 . t0 ) ;
352
+ this . say ( _context3 . t0 . error ) ;
352
353
353
- case 9 :
354
+ case 10 :
354
355
case "end" :
355
356
return _context3 . stop ( ) ;
356
357
}
@@ -367,7 +368,11 @@ function () {
367
368
} , {
368
369
key : "bitrate" ,
369
370
value : function bitrate ( ) {
370
- this . say ( "Current bitrate: " . concat ( this . obsProps . bitrate , " Kbps" ) ) ;
371
+ if ( this . obsProps . bitrate != null ) {
372
+ this . say ( "Current bitrate: " . concat ( this . obsProps . bitrate , " Kbps" ) ) ;
373
+ } else {
374
+ this . say ( "Current bitrate: offline" ) ;
375
+ }
371
376
}
372
377
} , {
373
378
key : "sourceinfo" ,
Original file line number Diff line number Diff line change @@ -273,11 +273,16 @@ class Chat {
273
273
this . say ( `Scene successfully switched to "${ sceneName } "` ) ;
274
274
} catch ( e ) {
275
275
log . error ( e ) ;
276
+ this . say ( e . error ) ;
276
277
}
277
278
}
278
279
279
280
bitrate ( ) {
280
- this . say ( `Current bitrate: ${ this . obsProps . bitrate } Kbps` ) ;
281
+ if ( this . obsProps . bitrate != null ) {
282
+ this . say ( `Current bitrate: ${ this . obsProps . bitrate } Kbps` ) ;
283
+ } else {
284
+ this . say ( `Current bitrate: offline` ) ;
285
+ }
281
286
}
282
287
283
288
sourceinfo ( ) {
You can’t perform that action at this time.
0 commit comments