Player final class
Minn\Media\Player · public/minn/src/Minn/Media/Player.php · 63 lines
The media player's data as the reference gives MediaElement.js (probe media-player): its strings in the language in force, and the site's settings for it.
Constants and properties
| private | FOLDER = '/wp-includes/js/mediaelement/' |
Public
| static | register(?Minn\Runtime\Assets $scripts): void# | The player's scripts as the reference registers them: MediaElement.js (MIT, served from minn/assets/vendor), the engine's migration script and start-up in the reference's own files' place, all in the footer. Their strings and settings come with data(). |
| static | registerStyles(?Minn\Runtime\Assets $styles): void# | The player's styles: MediaElement.js's own and the engine's skin. |
| static | data(?Minn\Runtime\Assets $scripts): void# | The strings (mejsL10n, before the library) and settings (_wpmejsSettings) given to the player's handles. |
| static | strings(): string# | The script that defines mejsL10n: the language determine_locale names, and each string translated. |
| static | settings(): array# | _wpmejsSettings: where the player's files are, its class prefix and stretching, and the shortcode libraries, through mejs_settings. @return array<string, mixed> |
Nothing matches.