<?php /** * This script initiates a video conference session */ /** * Initialization */ $course_plugin = 'openmeetings'; //needed in order to load the plugin lang variables require_once dirname(__FILE__) . '/config.php'; $tool_name = get_lang('Videoconference'); $tpl = new Template($tool_name); $om = new \Chamilo\Plugin\OpenMeetings\OpenMeetings(); if ($om->isServerRunning()) { if (isset($_GET['launch']) && $_GET['launch'] == 1) { $meeting_params = array(); $meeting_params['meeting_name'] = 'C' . api_get_course_id() . '-' . api_get_session_id(); $meetings = $om->getCourseMeetings(); $selectedMeeting = array(); /* // Select the meeting with more participantCount. if (!empty($meetings)) { $max = 0; foreach ($meetings as $meeting) { if ($meeting['participantCount'] > $max) { $selectedMeeting = $meeting; $max = $meeting['participantCount']; } } }
<?php /** * This script initiates a videoconference session, calling the BigBlueButton API * @package chamilo.plugin.bigbluebutton */ /** * Initialization */ $course_plugin = 'openmeetings'; //needed in order to load the plugin lang variables require_once dirname(__FILE__).'/config.php'; $plugin = \OpenMeetingsPlugin::create(); $tool_name = $plugin->get_lang('Videoconference'); $tpl = new Template($tool_name); $om = new Chamilo\Plugin\OpenMeetings\OpenMeetings(); $action = isset($_GET['action']) ? $_GET['action'] : null; $teacher = $om->isTeacher(); api_protect_course_script(true); $message = null; if ($teacher) { switch ($action) { case 'add_to_calendar': $course_info = api_get_course_info(); $agenda = new Agenda(); $agenda->type = 'course'; $id = intval($_GET['id']); $title = sprintf(get_lang('VideoConferenceXCourseX'), $id, $course_info['name']);