Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

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

Defines 6 functions


Functions that are not part of a class:

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