> Webサーバ側との通信が滞った場合に表示されているように思いますが、どのような条件下で表示されるものなのか、わかりますでしょうか?
以下のように「30秒毎」にセッションを確認して、「10秒」応答がない場合にSCORMプレイヤのエラーメッセージを表示するようです。
該当プログラム:
mod/scorm/player.php
該当箇所:
286行目
// Add the keepalive system to keep checking for a connection.
\core\session\manager::keepalive('networkdropped', 'mod_scorm', 30, 10);
-----------------
該当プログラム:
lib/classes/session/manager.php
該当箇所:
1068行目
/**
* Add a JS session keepalive to the page.
*
* A JS session keepalive script will be called to update the session modification time every $frequency seconds.
*
* Upon failure, the specified error message will be shown to the user.
*
* @param string $identifier The string identifier for the message to show on failure.
* @param string $component The string component for the message to show on failure.
* @param int $frequency The update frequency in seconds.
* @param int $timeout The timeout of each request in seconds.
* @throws coding_exception IF the frequency is longer than the session lifetime.
*/
public static function keepalive($identifier = 'sessionerroruser', $component = 'error', $frequency = null, $timeout = 0) {
global $CFG, $PAGE;