bigbluebutton-Github/bigbluebutton-client/resources/prod/check/lib/pre_flight_check.js

52 lines
1.5 KiB
JavaScript
Raw Normal View History

2013-04-16 23:42:31 +08:00
var registerListeners = function() {
console.log("Listening for events.");
BBBCheck.listen("MicCheckAppReadyEvent", function() {
console.log("Received [MicCheckAppReadyEvent].");
});
BBBCheck.listen("NewRoleEvent", function(bbbCheckEvent) {
console.log("New Role Event [amIPresenter=" + bbbCheckEvent.amIPresenter + ",role=" + bbbCheckEvent.role + ",newPresenterUserID=" + bbbCheckEvent.newPresenterUserID + "].");
});
}
2013-04-12 17:36:21 +08:00
var bbbCheckFlashVersion = function() {
var playerVersion = BBBCheck.getFlashPlayerVersion();
console.log("You have Flash player " + playerVersion.major + "." + playerVersion.minor + "." + playerVersion.release + " installed");
}
var bbbHasMinFlashVersion = function(version) {
console.log("Q: Do I have Flash player 9.0.18 or higher installed?\nA: " + BBBCheck.hasMinFlashPlayerVersion(version));
2013-04-12 18:08:48 +08:00
}
var bbbGetBrowser = function() {
console.log("Browser = " + BBBCheck.getBrowser());
}
var bbbGetJREs = function() {
console.log("JREs = " + BBBCheck.getJREs());
2013-04-16 23:42:31 +08:00
}
var bbbCheckShowMicSettings = function() {
BBBCheck.showMicSettings();
2013-04-17 05:17:00 +08:00
}
var bbbCheckStartTestMic = function() {
BBBCheck.startTestMicrophone();
}
var bbbCheckStopTestMic = function() {
BBBCheck.stopTestMicrophone();
}
var bbbCheckShowCamSettings = function() {
BBBCheck.showCamSettings();
}
var bbbCheckTestRTMPConnection = function(host, app) {
BBBCheck.testRTMPConnection(host, app);
}
var bbbCheckTestSocketConnection = function(host, port) {
BBBCheck.testSocketConnection(host, port);
}