File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -46,11 +46,13 @@ const ScreenObtainer = {
4646 * @private
4747 */
4848 _createObtainStreamMethod ( ) {
49- if ( browser . isElectron ( ) ) {
49+ const supportsGetDisplayMedia = browser . supportsGetDisplayMedia ( ) ;
50+
51+ if ( browser . isElectron ( ) && ! this . options . electronUseGetDisplayMedia ) {
5052 return this . obtainScreenOnElectron ;
51- } else if ( browser . isReactNative ( ) && browser . supportsGetDisplayMedia ( ) ) {
53+ } else if ( browser . isReactNative ( ) && supportsGetDisplayMedia ) {
5254 return this . obtainScreenFromGetDisplayMediaRN ;
53- } else if ( browser . supportsGetDisplayMedia ( ) ) {
55+ } else if ( supportsGetDisplayMedia ) {
5456 return this . obtainScreenFromGetDisplayMedia ;
5557 }
5658 logger . log ( 'Screen sharing not supported on ' , browser . getName ( ) ) ;
You can’t perform that action at this time.
0 commit comments