Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 142... Línea 142...
142
        }
142
        }
143
        // We should never reach this point.
143
        // We should never reach this point.
144
        break;
144
        break;
Línea 145... Línea 145...
145
 
145
 
146
    case 'play':
146
    case 'play':
147
        $recording = recording::get_record(['id' => $rid]);
147
        $recordings = $instance->get_recordings();
148
        if ($href = $recording->get_remote_playback_url($rtype)) {
148
        if (!isset($recordings[$rid])) {
149
            logger::log_recording_played_event($instance, $rid);
149
            notification::add(get_string('recordingnotfound', 'mod_bigbluebuttonbn'), notification::ERROR);
-
 
150
            redirect($instance->get_view_url());
-
 
151
        }
150
            redirect(urldecode($href));
152
        $href = $recordings[$rid]->get_remote_playback_url($rtype);
151
        } else {
153
        if (!$href) {
152
            notification::add(get_string('recordingurlnotfound', 'mod_bigbluebuttonbn'), notification::ERROR);
154
            notification::add(get_string('recordingurlnotfound', 'mod_bigbluebuttonbn'), notification::ERROR);
153
            redirect($instance->get_view_url());
155
            redirect($instance->get_view_url());
-
 
156
        }
-
 
157
        logger::log_recording_played_event($instance, $rid);
154
        }
158
        redirect(urldecode($href));
155
        // We should never reach this point.
159
        // We should never reach this point.
156
        break;
160
        break;
157
}
161
}
158
// When we reach this point, we can close the tab or window where BBB was opened.
162
// When we reach this point, we can close the tab or window where BBB was opened.