Updates app.bundle.js

This commit is contained in:
paweldomas 2015-08-19 18:27:09 +02:00
parent 0fe4999beb
commit e79d476d89
2 changed files with 46 additions and 13 deletions

View File

@ -20,7 +20,7 @@
<script src="libs/popover.js?v=1"></script><!-- bootstrap tooltip lib --> <script src="libs/popover.js?v=1"></script><!-- bootstrap tooltip lib -->
<script src="libs/toastr.js?v=1"></script><!-- notifications lib --> <script src="libs/toastr.js?v=1"></script><!-- notifications lib -->
<script src="interface_config.js?v=5"></script> <script src="interface_config.js?v=5"></script>
<script src="libs/app.bundle.js?v=128"></script> <script src="libs/app.bundle.js?v=129"></script>
<script src="analytics.js?v=1"></script><!-- google analytics plugin --> <script src="analytics.js?v=1"></script><!-- google analytics plugin -->
<link rel="stylesheet" href="css/font.css?v=7"/> <link rel="stylesheet" href="css/font.css?v=7"/>
<link rel="stylesheet" href="css/toastr.css?v=1"> <link rel="stylesheet" href="css/toastr.css?v=1">

View File

@ -2067,7 +2067,7 @@ RTCUtils.prototype.createStream = function(stream, isVideo) {
module.exports = RTCUtils; module.exports = RTCUtils;
},{"../../service/RTC/Resolutions":166,"../xmpp/SDPUtil":60,"./RTCBrowserType":10,"./adapter.screenshare":12}],12:[function(require,module,exports){ },{"../../service/RTC/Resolutions":166,"../xmpp/SDPUtil":60,"./RTCBrowserType":10,"./adapter.screenshare":12}],12:[function(require,module,exports){
/*! adapterjs - custom version from - 2015-08-18 */ /*! adapterjs - custom version from - 2015-08-19 */
// Adapter's interface. // Adapter's interface.
var AdapterJS = AdapterJS || {}; var AdapterJS = AdapterJS || {};
@ -2423,13 +2423,12 @@ AdapterJS.renderNotificationBar = function (text, buttonText, buttonLink, openNe
AdapterJS.WebRTCPlugin.isPluginInstalled( AdapterJS.WebRTCPlugin.isPluginInstalled(
AdapterJS.WebRTCPlugin.pluginInfo.prefix, AdapterJS.WebRTCPlugin.pluginInfo.prefix,
AdapterJS.WebRTCPlugin.pluginInfo.plugName, AdapterJS.WebRTCPlugin.pluginInfo.plugName,
AdapterJS.WebRTCPlugin.defineWebRTCInterface, function() { // plugin now installed
function() {
clearInterval(pluginInstallInterval); clearInterval(pluginInstallInterval);
AdapterJS.WebRTCPlugin.defineWebRTCInterface(); AdapterJS.WebRTCPlugin.defineWebRTCInterface();
}, },
function() { function() {
//Does nothing because not used here // still no plugin detected, nothing to do
}); });
} , 500); } , 500);
}); });
@ -2802,6 +2801,28 @@ if (navigator.mozGetUserMedia) {
return to; return to;
}; };
AdapterJS.maybeThroughWebRTCReady();
} else if (navigator.mediaDevices && navigator.userAgent.match(
/Edge\/(\d+).(\d+)$/)) {
webrtcDetectedBrowser = 'edge';
webrtcDetectedVersion =
parseInt(navigator.userAgent.match(/Edge\/(\d+).(\d+)$/)[2], 10);
// the minimum version still supported by adapter.
webrtcMinimumVersion = 12;
getUserMedia = navigator.getUserMedia;
attachMediaStream = function(element, stream) {
element.srcObject = stream;
return element;
};
reattachMediaStream = function(to, from) {
to.srcObject = from.srcObject;
return to;
};
AdapterJS.maybeThroughWebRTCReady(); AdapterJS.maybeThroughWebRTCReady();
} else { // TRY TO USE PLUGIN } else { // TRY TO USE PLUGIN
// IE 9 is not offering an implementation of console.log until you open a console // IE 9 is not offering an implementation of console.log until you open a console
@ -2954,9 +2975,10 @@ if (navigator.mozGetUserMedia) {
AdapterJS.WebRTCPlugin.defineWebRTCInterface = function () { AdapterJS.WebRTCPlugin.defineWebRTCInterface = function () {
if (AdapterJS.WebRTCPlugin.pluginState === if (AdapterJS.WebRTCPlugin.pluginState ===
AdapterJS.WebRTCPlugin.PLUGIN_STATES.READY) { AdapterJS.WebRTCPlugin.PLUGIN_STATES.READY) {
console.error("WebRTC interface has been defined already"); console.error("AdapterJS - WebRTC interface has already been defined");
return; return;
} }
AdapterJS.WebRTCPlugin.pluginState = AdapterJS.WebRTCPlugin.PLUGIN_STATES.INITIALIZING; AdapterJS.WebRTCPlugin.pluginState = AdapterJS.WebRTCPlugin.PLUGIN_STATES.INITIALIZING;
AdapterJS.isDefined = function (variable) { AdapterJS.isDefined = function (variable) {
@ -3053,9 +3075,10 @@ if (navigator.mozGetUserMedia) {
} }
var elementId = element.id.length === 0 ? Math.random().toString(36).slice(2) : element.id; var elementId = element.id.length === 0 ? Math.random().toString(36).slice(2) : element.id;
if (!element.isWebRTCPlugin || !element.isWebRTCPlugin()) { var nodeName = element.nodeName.toLowerCase();
if (nodeName !== 'object') { // not a plugin <object> tag yet
var tag; var tag;
switch(element.nodeName.toLowerCase()) { switch(nodeName) {
case 'audio': case 'audio':
tag = AdapterJS.WebRTCPlugin.TAGS.AUDIO; tag = AdapterJS.WebRTCPlugin.TAGS.AUDIO;
break; break;
@ -3106,7 +3129,7 @@ if (navigator.mozGetUserMedia) {
frag.width = width; frag.width = width;
frag.height = height; frag.height = height;
element.parentNode.removeChild(element); element.parentNode.removeChild(element);
} else { } else { // already an <object> tag, just change the stream id
var children = element.children; var children = element.children;
for (var i = 0; i !== children.length; ++i) { for (var i = 0; i !== children.length; ++i) {
if (children[i].name === 'streamId') { if (children[i].name === 'streamId') {
@ -3118,9 +3141,9 @@ if (navigator.mozGetUserMedia) {
} }
var newElement = document.getElementById(elementId); var newElement = document.getElementById(elementId);
newElement.onplaying = (element.onplaying) ? element.onplaying : function (arg) {}; newElement.onplaying = (element.onplaying) ? element.onplaying : function (arg) {};
newElement.onclick = (element.onclick) ? element.onclick : function (arg) {};
if (isIE) { // on IE the event needs to be plugged manually if (isIE) { // on IE the event needs to be plugged manually
newElement.attachEvent('onplaying', newElement.onplaying); newElement.attachEvent('onplaying', newElement.onplaying);
newElement.onclick = (element.onclick) ? element.onclick : function (arg) {};
newElement._TemOnClick = function (id) { newElement._TemOnClick = function (id) {
var arg = { var arg = {
srcElement : document.getElementById(id) srcElement : document.getElementById(id)
@ -8694,7 +8717,7 @@ function changeVideo(isVisible) {
if (isVisible) { if (isVisible) {
LargeVideo.VideoLayout.largeVideoUpdated(currentSmallVideo); LargeVideo.VideoLayout.largeVideoUpdated(currentSmallVideo);
$('#largeVideoWrapper').fadeIn(300); $('#largeVideoWrapper').fadeTo(300, 1);
} }
} }
@ -8829,7 +8852,7 @@ var LargeVideo = {
// If for any reason large video was hidden before calling fadeOut // If for any reason large video was hidden before calling fadeOut
// changeVideo will never be called, so we call show() in chain just // changeVideo will never be called, so we call show() in chain just
// to be sure // to be sure
$('#largeVideoWrapper').show().fadeOut(300, $('#largeVideoWrapper').show().fadeTo(300, 0,
changeVideo.bind($('#largeVideo'), this.isLargeVideoVisible())); changeVideo.bind($('#largeVideo'), this.isLargeVideoVisible()));
} else { } else {
if (currentSmallVideo) { if (currentSmallVideo) {
@ -10213,6 +10236,16 @@ var VideoLayout = (function (my) {
localAudio.autoplay = true; localAudio.autoplay = true;
localAudio.volume = 0; localAudio.volume = 0;
} }
// Now when Temasys plugin is converting also <audio> elements to
// plugin's <object>s, in current layout it will capture click events
// before it reaches the local video object. We hide it here in order
// to prevent that.
if (RTCBrowserType.isIExplorer()) {
// The issue is not present on Safari. Also if we hide it in Safari
// then the local audio track will have 'enabled' flag set to false
// which will result in audio mute issues
$('#localAudio').hide();
}
}; };
my.changeLocalVideo = function(stream, isMuted) { my.changeLocalVideo = function(stream, isMuted) {