mux:embed Antlers Tag
Render an iframe that embeds a Mux Player. The official web components require loading component scripts; this iframe embed is a script-free alternative. See the Mux Player docs for customization options.
antlers
{{ mux:embed src="assets::video.mp4" }}html
<iframe
src="https://player.mux.com/85g23gYz7NmQu02YsY81ihuod6cZMxCp017ZrfglyLCKc"
width="1920"
height="1080"
></iframe>Custom attributes
Any other attributes will be passed along as query params to allow for customization. Learn more about customizing the look and feel of Mux Player.
antlers
{{ mux:embed src="assets::video.mp4" primary-color="#075389" start-time="10" }}html
<iframe
src="https://player.mux.com/85g23gYz7NmQu02YsY81ihuod6cZMxCp017ZrfglyLCKc?primary_color=%23075389&start_time=10"
width="1920"
height="1080"
></iframe>Customizing the view
If you need to adjust the rendered html beyond what's possible with the standard parameters, you can publish the addon's views and make them your own. To do that, run the following command in your console. You'll then find the views in resources/views/vendor/statamic-mux/.
sh
php artisan vendor:publish --tag=statamic-mux-views