Media\Helpers\MediaView
Overview
MediaView helpers class for processing video and audio tags inserted by the Media Manager.
Protected Properties
protected array $playerPartialFlags
Public Methods
public static instance()
public static instance(): static
instance creates a new instance of this singleton
public processHtml()
public processHtml(string $html): string
processHtml replaces audio and video tags inserted by the Media Manager with players markup.
Protected Methods
protected extractMediaTags()
protected extractMediaTags($html): void
protected generateMediaTagMarkup()
protected generateMediaTagMarkup($type, $src): void
protected getDefaultPlayerMarkup()
protected getDefaultPlayerMarkup($type, $src): void
protected playerPartialExists()
protected playerPartialExists($name): void