Преглед изворни кода

Updates Temasys adapter.screenshare.js. Browser restart is no longer required after plugin install.

master
paweldomas пре 10 година
родитељ
комит
4c4e99c51a
1 измењених фајлова са 17 додато и 5 уклоњено
  1. 17
    5
      modules/RTC/adapter.screenshare.js

+ 17
- 5
modules/RTC/adapter.screenshare.js Прегледај датотеку

1
-/*! adapterjs - v0.11.0 - 2015-06-08 */
1
+/*! adapterjs - v0.11.1 - 2015-07-28 */
2
 
2
 
3
 // Adapter's interface.
3
 // Adapter's interface.
4
 var AdapterJS = AdapterJS || {};
4
 var AdapterJS = AdapterJS || {};
17
 // AdapterJS.options.hidePluginInstallPrompt = true;
17
 // AdapterJS.options.hidePluginInstallPrompt = true;
18
 
18
 
19
 // AdapterJS version
19
 // AdapterJS version
20
-AdapterJS.VERSION = '0.11.0';
20
+AdapterJS.VERSION = '0.11.1';
21
 
21
 
22
 // This function will be called when the WebRTC API is ready to be used
22
 // This function will be called when the WebRTC API is ready to be used
23
 // Whether it is the native implementation (Chrome, Firefox, Opera) or
23
 // Whether it is the native implementation (Chrome, Firefox, Opera) or
340
       try {
340
       try {
341
         event.cancelBubble = true;
341
         event.cancelBubble = true;
342
       } catch(error) { }
342
       } catch(error) { }
343
-    });
344
-  }
345
-  else {
343
+
344
+        var pluginInstallInterval = setInterval(function(){
345
+            if(! isIE) {
346
+              navigator.plugins.refresh(false);
347
+            }
348
+            AdapterJS.WebRTCPlugin.isPluginInstalled(
349
+              AdapterJS.WebRTCPlugin.pluginInfo.prefix,
350
+              AdapterJS.WebRTCPlugin.pluginInfo.plugName,
351
+              AdapterJS.WebRTCPlugin.defineWebRTCInterface,
352
+              function() { //Does nothing because not used here
353
+              });
354
+          } , 500);
355
+    });   
356
+
357
+  }else {
346
     c.document.close();
358
     c.document.close();
347
   }
359
   }
348
   AdapterJS.addEvent(c.document, 'click', function() {
360
   AdapterJS.addEvent(c.document, 'click', function() {

Loading…
Откажи
Сачувај