Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Fixture for testing the functionality of core_media_player_native.

Copyright: 2019 Ruslan Kabalin
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 89 lines (3 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

media_test_native_plugin:: (3 methods):
  __construct()
  embed()
  get_rank()


Class: media_test_native_plugin  - X-Ref

Native media player stub for testing purposes.

__construct($num = 1, $rank = 13)   X-Ref
Constructor is used for tuning the fixture.

param: int $num Number (used in output)
param: int $rank Player rank

embed($urls, $name, $width, $height, $options)   X-Ref
Generates code required to embed the player.

param: array $urls URLs of media files
param: string $name Display name; '' to use default
param: int $width Optional width; 0 to use default
param: int $height Optional height; 0 to use default
param: array $options Options array
return: string HTML code for embed

get_rank()   X-Ref
Gets the ranking of this player.

return: int Rank