2012-08-01 06:49:09 +08:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
2012-08-06 06:14:01 +08:00
|
|
|
<head>
|
2014-02-08 08:56:23 +08:00
|
|
|
<title></title>
|
2012-08-06 06:14:01 +08:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
|
|
<style type="text/css" media="screen">
|
2012-11-29 04:29:17 +08:00
|
|
|
html, body, #content { height:100%; }
|
2012-08-06 06:14:01 +08:00
|
|
|
body { margin:0; padding:0; overflow:hidden; }
|
|
|
|
#altContent { /* style alt content */ }
|
2012-11-29 04:29:17 +08:00
|
|
|
.visually-hidden {
|
|
|
|
position: absolute !important;
|
|
|
|
clip: rect(1px 1px, 1px, 1px);
|
|
|
|
clip: rect(1px, 1px, 1px, 1px);
|
|
|
|
padding: 0 !important;
|
|
|
|
border: 0 !important;
|
|
|
|
height: 1px !important;
|
|
|
|
width: 1px !important;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2015-01-28 06:19:02 +08:00
|
|
|
|
|
|
|
#deployJavaPlugin {
|
|
|
|
display : none;
|
|
|
|
}
|
2012-08-06 06:14:01 +08:00
|
|
|
</style>
|
2012-08-25 05:25:21 +08:00
|
|
|
|
2012-08-06 06:14:01 +08:00
|
|
|
<script type="text/javascript" src="swfobject/swfobject.js"></script>
|
2015-01-28 06:19:02 +08:00
|
|
|
<script src="lib/deployJava.js?v=VERSION" language="javascript"></script>
|
2012-08-06 06:14:01 +08:00
|
|
|
<script type="text/javascript">
|
2015-10-16 02:05:12 +08:00
|
|
|
// Check for Firefox 41.0.1/2 to workaround Flash hang
|
2015-10-05 23:26:31 +08:00
|
|
|
// See https://bugzilla.mozilla.org/show_bug.cgi?id=1210665
|
|
|
|
var ffHangWorkaround = function() {
|
|
|
|
if (navigator.userAgent.indexOf("Windows") != -1 &&
|
|
|
|
(navigator.userAgent.indexOf("Firefox/41.0") != -1 &&
|
|
|
|
navigator.buildID > "20150928" &&
|
2015-10-16 02:05:12 +08:00
|
|
|
navigator.buildID < "20151015")) {
|
|
|
|
console.log("Browser appears to be Firefox 41.0.1 or .2 on Windows");
|
2015-10-05 23:26:31 +08:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
};
|
|
|
|
|
2012-11-29 00:04:26 +08:00
|
|
|
//swfobject.registerObject("BigBlueButton", "11", "expressInstall.swf");
|
|
|
|
var flashvars = {};
|
|
|
|
var params = {};
|
|
|
|
params.quality = "high";
|
|
|
|
params.bgcolor = "#869ca7";
|
|
|
|
params.allowfullscreen = "true";
|
2015-10-05 23:26:31 +08:00
|
|
|
if (ffHangWorkaround()) {
|
|
|
|
console.log("Applying Firefox Flash hang workaround");
|
|
|
|
// wmode = opaque causes button clicks to be sometimes unresponsive,
|
|
|
|
// and right-click in particular is unreliable. It disables Flash
|
|
|
|
// permission prompts on Linux (causing webcams, flash voice to be
|
|
|
|
// unusable there). But it's better than a browser hang...
|
|
|
|
params.wmode = "opaque";
|
|
|
|
} else {
|
|
|
|
params.wmode = "window";
|
|
|
|
}
|
2012-11-29 00:04:26 +08:00
|
|
|
params.allowscriptaccess = "true";
|
|
|
|
params.seamlesstabbing = "true";
|
|
|
|
var attributes = {};
|
|
|
|
attributes.id = "BigBlueButton";
|
|
|
|
attributes.name = "BigBlueButton";
|
|
|
|
attributes.align = "middle";
|
2012-11-29 01:24:13 +08:00
|
|
|
attributes.tabIndex = 0;
|
2015-02-13 07:52:03 +08:00
|
|
|
swfobject.embedSWF("BigBlueButton.swf?v=VERSION", "altFlash", "100%", "100%", "11.0.0", "expressInstall.swf", flashvars, params, attributes, embedCallback);
|
|
|
|
|
|
|
|
function embedCallback(e) {
|
|
|
|
// Work around pixel alignment bug with Chrome 21 on Mac.
|
|
|
|
// See: http://code.google.com/p/bigbluebutton/issues/detail?id=1294
|
|
|
|
var objs = $('object');
|
|
|
|
objs.each(function(i, o) {
|
|
|
|
var o = $(o);
|
|
|
|
var top = o.offset().top;
|
|
|
|
var left = o.offset().left;
|
|
|
|
var roundtop = Math.round(top);
|
|
|
|
var roundleft = Math.round(left);
|
|
|
|
o.css("position", "relative");
|
|
|
|
if (roundtop === top) {
|
|
|
|
} else {
|
|
|
|
o.css("top", roundtop - top);
|
|
|
|
}
|
|
|
|
if (roundleft === left) {
|
|
|
|
} else {
|
|
|
|
o.css("left", roundleft - left);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2012-08-06 06:14:01 +08:00
|
|
|
</script>
|
2014-09-18 05:38:19 +08:00
|
|
|
<script src="lib/jquery-1.5.1.min.js?v=VERSION" language="javascript"></script>
|
|
|
|
<script src="lib/bbblogger.js?v=VERSION" language="javascript"></script>
|
|
|
|
<script src="lib/bigbluebutton.js?v=VERSION" language="javascript"></script>
|
|
|
|
<script src="lib/bbb_localization.js?v=VERSION" language="javascript"></script>
|
|
|
|
<script src="lib/bbb_blinker.js?v=VERSION" language="javascript"></script>
|
|
|
|
<script src="lib/bbb_deskshare.js?v=VERSION" language="javascript"></script>
|
|
|
|
<script src="lib/bbb_api_bridge.js?v=VERSION" language="javascript"></script>
|
2014-10-07 06:09:36 +08:00
|
|
|
<script src="lib/sip.js?v=VERSION" language="javascript"></script>
|
2015-03-28 05:32:27 +08:00
|
|
|
<script src="lib/bbb_webrtc_bridge_sip.js?v=VERSION" language="javascript"></script>
|
|
|
|
<script src="lib/weburl_regex.js?v=VERSION" language="javascript"></script>
|
2015-07-22 18:59:15 +08:00
|
|
|
<script src="lib/jsnlog.min.js?v=VERSION" language="javascript"></script>
|
2013-01-12 06:26:05 +08:00
|
|
|
<script>
|
|
|
|
window.chatLinkClicked = function(url) {
|
|
|
|
window.open(url, '_blank');
|
|
|
|
window.focus();
|
|
|
|
}
|
|
|
|
</script>
|
2015-09-24 05:24:19 +08:00
|
|
|
<script type="text/javascript">
|
|
|
|
window.onload = function() {
|
|
|
|
var checkRequest = $.ajax({
|
|
|
|
dataType: 'json',
|
|
|
|
url: '/html5client/check'
|
|
|
|
});
|
|
|
|
checkRequest.done(function(data) {
|
2015-09-25 00:05:41 +08:00
|
|
|
if(typeof data.html5clientStatus !== "undefined" && data.html5clientStatus === "running") {
|
2015-09-24 23:58:17 +08:00
|
|
|
document.getElementById('html5Section').style.display='inherit';
|
|
|
|
}
|
2015-09-24 05:24:19 +08:00
|
|
|
});
|
|
|
|
};
|
2015-09-24 23:58:17 +08:00
|
|
|
|
2015-03-05 07:51:33 +08:00
|
|
|
function html5() {
|
|
|
|
// no Flash detected on the client
|
2015-09-24 23:58:17 +08:00
|
|
|
var originalPath, enterRequest, authToken, meetingId, userId;
|
2015-03-07 06:44:13 +08:00
|
|
|
originalPath = document.location.pathname;
|
|
|
|
|
2015-09-24 23:58:17 +08:00
|
|
|
// use the enter api to detect the meetingid, userid and authToken
|
|
|
|
// and reuse them to join via the HTML5 client
|
|
|
|
enterRequest = $.ajax({
|
2015-03-05 07:51:33 +08:00
|
|
|
dataType: 'json',
|
2015-09-24 23:58:17 +08:00
|
|
|
url: '/bigbluebutton/api/enter'
|
2015-03-07 06:44:13 +08:00
|
|
|
});
|
|
|
|
|
2015-09-24 23:58:17 +08:00
|
|
|
enterRequest.done(function(enterData) {
|
|
|
|
meetingId = enterData.response.meetingID;
|
|
|
|
userId = enterData.response.externUserID;
|
|
|
|
authToken = enterData.response.authToken;
|
2015-03-05 07:51:33 +08:00
|
|
|
|
2015-09-24 23:58:17 +08:00
|
|
|
if ((meetingId != null) && (userId != null) && (authToken != null)) {
|
|
|
|
// redirect to the html5 client with the received info
|
|
|
|
// format <IP>/html5client/<meetingId>/<userId>/<authToken>
|
|
|
|
document.location.pathname = "/html5client/"+meetingId+"/"+userId+"/"+authToken;
|
|
|
|
} else {
|
|
|
|
// go back to the redirection page
|
|
|
|
document.location.pathname = originalPath;
|
2015-03-07 06:44:13 +08:00
|
|
|
}
|
2015-03-05 07:51:33 +08:00
|
|
|
});
|
2015-03-07 06:44:13 +08:00
|
|
|
|
2015-09-24 23:58:17 +08:00
|
|
|
enterRequest.fail(function(enterData, textStatus, errorThrown){
|
|
|
|
BBBLog.debug("Enter request failed");
|
2015-03-14 04:43:32 +08:00
|
|
|
});
|
2015-03-05 07:51:33 +08:00
|
|
|
}
|
|
|
|
</script>
|
2012-08-06 06:14:01 +08:00
|
|
|
</head>
|
2014-02-08 08:56:23 +08:00
|
|
|
|
2012-11-29 00:04:26 +08:00
|
|
|
<body>
|
2015-03-05 07:51:33 +08:00
|
|
|
<div>
|
|
|
|
<audio id="remote-media" autoplay="autoplay"></audio>
|
|
|
|
</div>
|
2014-02-08 08:56:23 +08:00
|
|
|
|
2015-03-11 00:11:56 +08:00
|
|
|
<div id="content">
|
|
|
|
<div id="altFlash" style="width:50%; margin-left: auto; margin-right: auto; ">
|
2015-03-05 07:51:33 +08:00
|
|
|
<h2>You need Flash installed and enabled in order to use the Flash client.</h2>
|
|
|
|
<br/>
|
2015-03-07 06:43:51 +08:00
|
|
|
<div style="width:50%; margin-left: auto; margin-right: auto; ">
|
|
|
|
<a href="http://www.adobe.com/go/getflashplayer">
|
2015-09-10 23:53:36 +08:00
|
|
|
<img src="//www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
|
2015-03-07 06:43:51 +08:00
|
|
|
</a>
|
2015-09-24 05:24:19 +08:00
|
|
|
<div id="html5Section" style="display:none">
|
|
|
|
<p style="margin-left:50px;" >OR</p>
|
|
|
|
<button type="button" onclick="html5();"><h3>Launch the HTML5 client instead</h3></button>
|
|
|
|
</div>
|
2015-03-07 06:43:51 +08:00
|
|
|
</div>
|
2012-11-29 01:24:13 +08:00
|
|
|
</div>
|
2012-08-06 06:14:01 +08:00
|
|
|
</div>
|
2015-03-19 05:21:01 +08:00
|
|
|
<button id="enterFlash" type="button" class="visually-hidden" onclick="startFlashFocus();" value="Click to focus the client"></button>
|
|
|
|
<div id="clientReady" aria-atomic="false" aria-live="polite"></div>
|
2014-02-08 08:56:23 +08:00
|
|
|
</body>
|
2014-09-18 05:38:19 +08:00
|
|
|
</html>
|