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 ( ) ;
}
2013-04-18 05:47:12 +08:00
var bbbCheckTestRTMPConnection = function ( host , app ) {
BBBCheck . testRTMPConnection ( host , app ) ;
}
var bbbCheckTestSocketConnection = function ( host , port ) {
BBBCheck . testSocketConnection ( host , port ) ;
}
2013-04-20 05:30:54 +08:00
var bbbCheckSetSocketPolicyFileURL = function ( url ) {
BBBCheck . setSocketPolicyFileURL ( url ) ;
}