浏览代码

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,4 +1,4 @@
1
-/*! adapterjs - v0.11.0 - 2015-06-08 */
1
+/*! adapterjs - v0.11.1 - 2015-07-28 */
2 2
 
3 3
 // Adapter's interface.
4 4
 var AdapterJS = AdapterJS || {};
@@ -17,7 +17,7 @@ AdapterJS.options = AdapterJS.options || {};
17 17
 // AdapterJS.options.hidePluginInstallPrompt = true;
18 18
 
19 19
 // AdapterJS version
20
-AdapterJS.VERSION = '0.11.0';
20
+AdapterJS.VERSION = '0.11.1';
21 21
 
22 22
 // This function will be called when the WebRTC API is ready to be used
23 23
 // Whether it is the native implementation (Chrome, Firefox, Opera) or
@@ -340,9 +340,21 @@ AdapterJS.renderNotificationBar = function (text, buttonText, buttonLink, openNe
340 340
       try {
341 341
         event.cancelBubble = true;
342 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 358
     c.document.close();
347 359
   }
348 360
   AdapterJS.addEvent(c.document, 'click', function() {

正在加载...
取消
保存