File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 372
372
classesName = [ ] ,
373
373
activeClass = [ ] ;
374
374
375
- if ( app . currentSession . peerConnections [ userID ] . stream ) {
375
+ if ( app . currentSession . peerConnections [ userID ] . stream && ! _ . isEmpty ( $that . attr ( 'src' ) ) ) {
376
376
if ( $that . hasClass ( 'active' ) ) {
377
377
$that . removeClass ( 'active' ) ;
378
378
461
461
ui . showCallBtn ( ) ;
462
462
463
463
if ( session . opponentsIDs . length > 1 ) {
464
- ui . updateMsg ( { msg : 'p2p_call_stop ' , obj : { name : app . caller . full_name } } ) ;
464
+ ui . updateMsg ( { msg : 'call_stop ' , obj : { name : app . caller . full_name } } ) ;
465
465
}
466
466
467
467
/** delete blob from myself video */
663
663
664
664
if ( app . mainVideo === userID ) {
665
665
$ ( '#remote_video_' + userID ) . removeClass ( 'active' ) ;
666
+
667
+ ui . changeFilter ( '#main_video' , 'no' ) ;
668
+ app . currentSession . detachMediaStream ( 'main_video' ) ;
669
+ app . mainVideo = 0 ;
666
670
}
667
671
668
672
if ( ! _ . isEmpty ( app . currentSession ) ) {
You can’t perform that action at this time.
0 commit comments