File tree 3 files changed +12
-6
lines changed
3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 401
401
402
402
uiChannel . trigger ( 'document:click' , event ) ;
403
403
} ,
404
- initAudioVideoSettings : function ( ) {
404
+ initAudioVideoSettings : function ( configuration ) {
405
405
if ( OCA . SpreedMe . app . audioDisabled ) {
406
406
OCA . SpreedMe . app . disableAudio ( ) ;
407
407
}
408
408
409
- if ( OCA . SpreedMe . app . videoDisabled ) {
409
+ if ( configuration . video !== false ) {
410
+ if ( OCA . SpreedMe . app . videoDisabled ) {
411
+ OCA . SpreedMe . app . disableVideo ( ) ;
412
+ }
413
+ } else {
414
+ OCA . SpreedMe . app . videoWasEnabledAtLeastOnce = false ;
410
415
OCA . SpreedMe . app . disableVideo ( ) ;
411
416
}
412
417
} ,
Original file line number Diff line number Diff line change 5360
5360
self . emit ( 'localStream' , stream ) ;
5361
5361
} else {
5362
5362
// Fallback for users without a camera
5363
- if ( self . config . audioFallback && err . name === 'DevicesNotFoundError' && constraints . video !== false ) {
5363
+ if ( self . config . audioFallback && ( err . name === 'DevicesNotFoundError' || err . name === 'NotFoundError' ) && constraints . video !== false ) {
5364
5364
constraints . video = false ;
5365
5365
self . start ( constraints , cb ) ;
5366
5366
return ;
14183
14183
if ( err ) {
14184
14184
self . emit ( 'localMediaError' , err ) ;
14185
14185
} else {
14186
- self . emit ( 'localMediaStarted' ) ;
14186
+ self . emit ( 'localMediaStarted' , self . config . media ) ;
14187
14187
attachMediaStream ( stream , self . getLocalVideoContainer ( ) , self . config . localVideo ) ;
14188
14188
}
14189
14189
} ) ;
Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ var spreedMappingTable = [];
117
117
}
118
118
} ,
119
119
autoAdjustMic : false ,
120
+ audioFallback : true ,
120
121
detectSpeakingEvents : true ,
121
122
connection : OCA . SpreedMe . XhrConnection ,
122
123
enableDataChannels : true ,
@@ -267,8 +268,8 @@ var spreedMappingTable = [];
267
268
} ) ;
268
269
} ) ;
269
270
270
- OCA . SpreedMe . webrtc . on ( 'localMediaStarted' , function ( ) {
271
- OCA . SpreedMe . app . initAudioVideoSettings ( ) ;
271
+ OCA . SpreedMe . webrtc . on ( 'localMediaStarted' , function ( configuration ) {
272
+ OCA . SpreedMe . app . initAudioVideoSettings ( configuration ) ;
272
273
} ) ;
273
274
274
275
OCA . SpreedMe . webrtc . on ( 'localMediaError' , function ( error ) {
You can’t perform that action at this time.
0 commit comments