Autoplay a Video added in a video field from a template

Is it possible to put a video on autplay from a video field? The code generated form the snippet is below. Just wondering what to add for an autoplay to be possible (with sound).

 {% if module.promo_video.player_id %}
 {% set max_width = module.promo_video.size_type == 'auto_custom_max' ? module.promo_video.max_width : module.promo_video.width %}
 {% set max_height = module.promo_video.size_type == 'auto_custom_max' ? module.promo_video.max_height : module.promo_video.height %}
 {% video_player "embed_player"
 player_id={{ module.promo_video.player_id }}
 type={{ module.promo_video.player_type || 'scriptV4' }}
 full_width={{ module.promo_video.size_type == 'auto_full_width' }},
 conversion_asset={{ module.promo_video.conversion_asset|tojson|safe }}
 autoplay={{ module.promo_video.autoplay }}
 hidden_controls={{ module.promo_video.hide_controls }}
 loop={{ module.promo_video.loop_video }}
 muted={{ module.promo_video.mute_by_default }}
 %}
{% endif %}

When adding the field to your module you’ll need to check “Show advanced options”. An “Advanced Options” field group will then appear where you can check “Autoplay”.

If you’re coding locally you can set a default for autoplay by adding “autoplay”: true to the default settings:

{
 "name" : "videoplayer_field",
 "label" : "Video",
 "required" : false,
 "locked" : false,
 "type" : "videoplayer",
 "show_advanced_options" : true,
 "default" : {
 "autoplay" : true
 }
}

Or when adding the module to a template you can also set the default like so:

{% module "module_id" path="/module/path/here", label="Module Label", videoplayer_field={'autoplay': true} %}

IMPORTANT TO NOTE: HubSpot’s video module’s autoplay plays unmuted by default BUT browsers have strict autoplay policies that will cause the video to play muted anyway a majority of the time. You can view the current state of browser autoplay policies here: The State of Autoplay on the Web | state-of-autoplay