Tagged: autoplay, Self Hosted, video
Hi there,
My client would like to autoplay a video that I have inserted using the avia layout builder video content feature. Is there a simple way to enable autoplay? The video is self hosted.
Hi japk!
Try adding the ‘autoplay’ attribute to the HTML5 player, can you paste the code you are using?
Regards,
Josue
sure! :
[av_video src='https://firehouseironworks.com/wp-content/uploads/2013/10/atthefirehouse.mp4' format='16-9' width='16' height='9']
Hey!
Open: /framework/php/function-set-avia-frontend.php
Look for line 510:
$output .= '<video class="avia_video" '.$image.' controls id="'.$uid.'" >';
Replace it with
$output .= '<video autoplay class="avia_video" '.$image.' controls id="'.$uid.'" >';
Regards,
Josue
Okay thanks that works. Thank you. Question: will all future videos I insert using the avia editor autoplay now?
Yes, they will.
Regards,
Josue