Logo

Html->media()

ops...

Description

Returns a formatted audio/video tag.

Usage: media(string|array $path, array $options) <?= $this->Html->media('audio.mp3') ?> <?= $this->Html->media('video.mp4', [ 'fullBase' => true, 'text' => 'Fallback text' ]) ?> Output: <audio src="/files/audio.mp3"></audio> <video src="http://www.somehost.com/files/video.mp4">Fallback text</video>