This file is serving optimised JS and WASM for ogv.js.
Copyright: | 2021 Huong Nguyen <huongnv13@gmail.com> |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 182 lines (7 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
media_videojs_ogvloader_is_wasm_file(string $filename) X-Ref |
Check the given file is a Web Assembly file or not return: bool Whether the file is Web Assembly or not param: string $filename File name to check |
media_videojs_ogvloader_add_module_module_name_if_necessary(bool $iswasm, string $content) X-Ref |
Add Moodle module name to the Javascript module if necessary return: string param: bool $iswasm Whether the file is Web Assembly or not param: string $content File content |
media_videojs_ogvloader_write_cache_file_content(bool $iswasm, string $candidate, string $filecontent) X-Ref |
Create cache file content param: bool $iswasm Whether the file is Web Assembly or not param: string $candidate Full file path to cache file param: string $filecontent File content |
media_videojs_ogvloader_send_cached(bool $iswasm, string $candidate, string $etag) X-Ref |
Send file content with as much caching as possible param: bool $iswasm Whether the file is Web Assembly or not param: string $candidate Full file path to cache file param: string $etag Etag |
media_videojs_ogvloader_send_uncached(bool $iswasm, string $ilecontent) X-Ref |
Send file without any caching param: bool $iswasm Whether the file is Web Assembly or not param: string $ilecontent File content |
media_videojs_ogvloader_send_unmodified(bool $iswasm, int $candidate, string $etag) X-Ref |
Send the file not modified headers param: bool $iswasm Whether the file is Web Assembly or not param: int $candidate Full file path to cache file param: string $etag Etag |