|
@@ -95,14 +95,12 @@ const ScreenObtainer = {
|
95
|
95
|
* (this.obtainStream).
|
96
|
96
|
*
|
97
|
97
|
* @param {object} options
|
98
|
|
- * @param {boolean} [options.disableDesktopSharing]
|
99
|
98
|
* @param {boolean} [options.desktopSharingChromeDisabled]
|
100
|
99
|
* @param {boolean} [options.desktopSharingChromeExtId]
|
101
|
100
|
* @param {boolean} [options.desktopSharingFirefoxDisabled]
|
102
|
101
|
* @param {Function} gum GUM method
|
103
|
102
|
*/
|
104
|
103
|
init(options = {
|
105
|
|
- disableDesktopSharing: false,
|
106
|
104
|
desktopSharingChromeDisabled: false,
|
107
|
105
|
desktopSharingChromeExtId: null,
|
108
|
106
|
desktopSharingFirefoxDisabled: false
|
|
@@ -110,9 +108,7 @@ const ScreenObtainer = {
|
110
|
108
|
this.options = options;
|
111
|
109
|
gumFunction = gum;
|
112
|
110
|
|
113
|
|
- this.obtainStream
|
114
|
|
- = this.options.disableDesktopSharing
|
115
|
|
- ? null : this._createObtainStreamMethod(options);
|
|
111
|
+ this.obtainStream = this._createObtainStreamMethod(options);
|
116
|
112
|
|
117
|
113
|
if (!this.obtainStream) {
|
118
|
114
|
logger.info('Desktop sharing disabled');
|