@@ -74,5 +74,5 @@ |
||
| 74 | 74 | |
| 75 | 75 | // OK response. |
| 76 | 76 | $filetarget = $filesaved->get_contextid().'/'.$filesaved->get_component().'/'.$filesaved->get_filearea().'/'. |
| 77 | - $filesaved->get_itemid().'/'.$filesaved->get_filename(); |
|
| 77 | + $filesaved->get_itemid().'/'.$filesaved->get_filename(); |
|
| 78 | 78 | echo($filetarget); |
@@ -61,12 +61,12 @@ |
||
| 61 | 61 | // Prepare file record object. |
| 62 | 62 | $usercontext = context_user::instance($USER->id); |
| 63 | 63 | $fileinfo = array( |
| 64 | - 'contextid' => $usercontext->id, // ID of context. |
|
| 64 | + 'contextid' => $usercontext->id, // ID of context. |
|
| 65 | 65 | 'component' => 'atto_recordrtc', // Usually = table name. |
| 66 | - 'filearea' => 'annotation', // Usually = table name. |
|
| 67 | - 'itemid' => time(), // Usually = ID of row in table. |
|
| 68 | - 'filepath' => '/', // Any path beginning and ending in "/". |
|
| 69 | - 'filename' => $filename, // Any filename. |
|
| 66 | + 'filearea' => 'annotation', // Usually = table name. |
|
| 67 | + 'itemid' => time(), // Usually = ID of row in table. |
|
| 68 | + 'filepath' => '/', // Any path beginning and ending in "/". |
|
| 69 | + 'filename' => $filename, // Any filename. |
|
| 70 | 70 | 'author' => fullname($USER), |
| 71 | 71 | 'licence' => $CFG->sitedefaultlicense |
| 72 | 72 | ); |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | 'videortcicon' => $videortcicon, |
| 69 | 69 | 'oldermoodle' => $moodleversion < $moodle32, |
| 70 | 70 | 'maxrecsize' => $maxrecsize |
| 71 | - ); |
|
| 71 | + ); |
|
| 72 | 72 | |
| 73 | 73 | return $params; |
| 74 | 74 | } |
@@ -80,41 +80,41 @@ discard block |
||
| 80 | 80 | global $PAGE; |
| 81 | 81 | |
| 82 | 82 | $PAGE->requires->strings_for_js(array('audiortc', |
| 83 | - 'videortc', |
|
| 84 | - 'gumabort_title', |
|
| 85 | - 'gumabort', |
|
| 86 | - 'gumnotallowed_title', |
|
| 87 | - 'gumnotallowed', |
|
| 88 | - 'gumnotfound_title', |
|
| 89 | - 'gumnotfound', |
|
| 90 | - 'gumnotreadable_title', |
|
| 91 | - 'gumnotreadable', |
|
| 92 | - 'gumoverconstrained_title', |
|
| 93 | - 'gumoverconstrained', |
|
| 94 | - 'gumsecurity_title', |
|
| 95 | - 'gumsecurity', |
|
| 96 | - 'gumtype_title', |
|
| 97 | - 'gumtype', |
|
| 98 | - 'insecurealert_title', |
|
| 99 | - 'insecurealert', |
|
| 100 | - 'browseralert_title', |
|
| 101 | - 'browseralert', |
|
| 102 | - 'startrecording', |
|
| 103 | - 'recordagain', |
|
| 104 | - 'stoprecording', |
|
| 105 | - 'recordingfailed', |
|
| 106 | - 'attachrecording', |
|
| 107 | - 'norecordingfound_title', |
|
| 108 | - 'norecordingfound', |
|
| 109 | - 'nearingmaxsize_title', |
|
| 110 | - 'nearingmaxsize', |
|
| 111 | - 'uploadprogress', |
|
| 112 | - 'uploadfailed', |
|
| 113 | - 'uploadfailed404', |
|
| 114 | - 'uploadaborted', |
|
| 115 | - 'annotationprompt', |
|
| 116 | - 'annotation:audio', |
|
| 117 | - 'annotation:video'), |
|
| 83 | + 'videortc', |
|
| 84 | + 'gumabort_title', |
|
| 85 | + 'gumabort', |
|
| 86 | + 'gumnotallowed_title', |
|
| 87 | + 'gumnotallowed', |
|
| 88 | + 'gumnotfound_title', |
|
| 89 | + 'gumnotfound', |
|
| 90 | + 'gumnotreadable_title', |
|
| 91 | + 'gumnotreadable', |
|
| 92 | + 'gumoverconstrained_title', |
|
| 93 | + 'gumoverconstrained', |
|
| 94 | + 'gumsecurity_title', |
|
| 95 | + 'gumsecurity', |
|
| 96 | + 'gumtype_title', |
|
| 97 | + 'gumtype', |
|
| 98 | + 'insecurealert_title', |
|
| 99 | + 'insecurealert', |
|
| 100 | + 'browseralert_title', |
|
| 101 | + 'browseralert', |
|
| 102 | + 'startrecording', |
|
| 103 | + 'recordagain', |
|
| 104 | + 'stoprecording', |
|
| 105 | + 'recordingfailed', |
|
| 106 | + 'attachrecording', |
|
| 107 | + 'norecordingfound_title', |
|
| 108 | + 'norecordingfound', |
|
| 109 | + 'nearingmaxsize_title', |
|
| 110 | + 'nearingmaxsize', |
|
| 111 | + 'uploadprogress', |
|
| 112 | + 'uploadfailed', |
|
| 113 | + 'uploadfailed404', |
|
| 114 | + 'uploadaborted', |
|
| 115 | + 'annotationprompt', |
|
| 116 | + 'annotation:audio', |
|
| 117 | + 'annotation:video'), |
|
| 118 | 118 | 'atto_recordrtc'); |
| 119 | 119 | } |
| 120 | 120 | |