|
|
|
@ -20,7 +20,7 @@ class bbb |
|
|
|
|
public $url; |
|
|
|
|
public $salt; |
|
|
|
|
public $api; |
|
|
|
|
public $user_complete_name = ''; |
|
|
|
|
public $userCompleteName = ''; |
|
|
|
|
public $protocol = 'http://'; |
|
|
|
|
public $debug = false; |
|
|
|
|
public $logoutUrl = ''; |
|
|
|
@ -34,6 +34,7 @@ class bbb |
|
|
|
|
* required for the connection to the video conference server) |
|
|
|
|
* @param string $host |
|
|
|
|
* @param string $salt |
|
|
|
|
* @param bool $isGlobalConference |
|
|
|
|
*/ |
|
|
|
|
public function __construct($host = '', $salt = '', $isGlobalConference = false) |
|
|
|
|
{ |
|
|
|
@ -65,7 +66,7 @@ class bbb |
|
|
|
|
|
|
|
|
|
if ($bbbPlugin === true) { |
|
|
|
|
$userInfo = api_get_user_info(); |
|
|
|
|
$this->user_complete_name = $userInfo['complete_name']; |
|
|
|
|
$this->userCompleteName = $userInfo['complete_name']; |
|
|
|
|
$this->salt = $bbb_salt; |
|
|
|
|
$info = parse_url($bbb_host); |
|
|
|
|
$this->url = $bbb_host.'/bigbluebutton/'; |
|
|
|
@ -152,6 +153,7 @@ class bbb |
|
|
|
|
# removed from memory. |
|
|
|
|
defaultMeetingCreateJoinDuration=5 |
|
|
|
|
* |
|
|
|
|
* @return mixed |
|
|
|
|
*/ |
|
|
|
|
public function createMeeting($params) |
|
|
|
|
{ |
|
|
|
@ -385,7 +387,7 @@ class bbb |
|
|
|
|
if ($meetingInfoExists) { |
|
|
|
|
$joinParams = array( |
|
|
|
|
'meetingId' => $meetingData['remote_id'], // -- REQUIRED - A unique id for the meeting |
|
|
|
|
'username' => $this->user_complete_name, //-- REQUIRED - The name that will display for the user in the meeting |
|
|
|
|
'username' => $this->userCompleteName, //-- REQUIRED - The name that will display for the user in the meeting |
|
|
|
|
'password' => $pass, //-- REQUIRED - The attendee or moderator password, depending on what's passed here |
|
|
|
|
//'createTime' => api_get_utc_datetime(), //-- OPTIONAL - string. Leave blank ('') unless you set this correctly. |
|
|
|
|
'userID' => api_get_user_id(), //-- OPTIONAL - string |
|
|
|
@ -437,7 +439,7 @@ class bbb |
|
|
|
|
{ |
|
|
|
|
$pass = $this->getUserMeetingPassword(); |
|
|
|
|
$courseId = api_get_course_int_id(); |
|
|
|
|
$sessionId = api_get_session_id(); |
|
|
|
|
$sessionId = api_get_session_id(); |
|
|
|
|
|
|
|
|
|
$conditions = array( |
|
|
|
|
'where' => array( |
|
|
|
@ -669,7 +671,7 @@ class bbb |
|
|
|
|
if ($meetingDB['status'] == 1) { |
|
|
|
|
$joinParams = array( |
|
|
|
|
'meetingId' => $meetingDB['remote_id'], //-- REQUIRED - A unique id for the meeting |
|
|
|
|
'username' => $this->user_complete_name, //-- REQUIRED - The name that will display for the user in the meeting |
|
|
|
|
'username' => $this->userCompleteName, //-- REQUIRED - The name that will display for the user in the meeting |
|
|
|
|
'password' => $pass, //-- REQUIRED - The attendee or moderator password, depending on what's passed here |
|
|
|
|
'createTime' => '', //-- OPTIONAL - string. Leave blank ('') unless you set this correctly. |
|
|
|
|
'userID' => '', // -- OPTIONAL - string |
|
|
|
@ -928,7 +930,7 @@ class bbb |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Checks if the videoconference server is running. |
|
|
|
|
* Checks if the video conference server is running. |
|
|
|
|
* Function currently disabled (always returns 1) |
|
|
|
|
* @return bool True if server is running, false otherwise |
|
|
|
|
* @assert () === false |
|
|
|
@ -968,12 +970,6 @@ class bbb |
|
|
|
|
header("Location: $url"); |
|
|
|
|
exit; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// js |
|
|
|
|
/*echo '<script>'; |
|
|
|
|
echo 'window.location = "'.$url.'"'; |
|
|
|
|
echo '</script>'; |
|
|
|
|
exit;*/ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|