MediaAudio
^do( MediaAudio, filename, [title] )^
Type: Macro
Purpose: Embeds the default HTML5 audio player
The MediaAudio macro embeds the default HTML5 audio player for the user’s browsing device. Adding a second title arg places a title below the player.
To add a fancy audio player that includes a scrubber and your website’s logo, just add a filename to the $blogAudio
key attribute (run the stamp to access audio attributes).
Hover below to reveal BoxPress code
<div class="well well-sm"><div class="audio-player"><h2>^value($DisplayExpression("dashBannerWidget"))^</h2><audio id="audio-player" controls="controls" class="center-block" src="^value($Text("dashUploadsDir"))^/$1" type="audio/mp4"></audio></div>^if($2)^<figcaption>$2</figcaption>^endIf^</div>
MediaAudio sample
This is the markup that is rendered below
^do(MediaAudio, "Shivaya-deep.mp3")^
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.