API / Minn\Media / Player

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

privateFOLDER = '/wp-includes/js/mediaelement/'

Public

staticregister(?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().

staticregisterStyles(?Minn\Runtime\Assets $styles): void#

The player's styles: MediaElement.js's own and the engine's skin.

staticdata(?Minn\Runtime\Assets $scripts): void#

The strings (mejsL10n, before the library) and settings (_wpmejsSettings) given to the player's handles.

staticstrings(): string#

The script that defines mejsL10n: the language determine_locale names, and each string translated.

staticsettings(): array#

_wpmejsSettings: where the player's files are, its class prefix and stretching, and the shortcode libraries, through mejs_settings.

@return array<string, mixed>