checkDirectMeetingVideoUrl($meetingId)) { $meetingInfo = Database::select( '*', 'plugin_bbb_meeting', ['where' => ['id = ?' => intval($meetingId)]], 'first' ); $url = $meetingInfo['video_url'].'/capture.m4v'; $link = Display::url( Display::return_icon('save.png', get_lang('Download file')), $meetingInfo['video_url'].'/capture.m4v', ['target' => '_blank'] ); header('Content-Type: application/json'); echo json_encode(['url' => $url, 'link' => $link]); } break; }