Tagged: video background
-
AuthorPosts
-
April 29, 2020 at 3:55 pm #1208192
I want a video as a background in a color section. The following problems occur:
1) There will be a debug error: “Notice: Undefined index: controls in /home/…/htdocs/public/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php on line 746
2) The video (self-hosted) is only played the first time it is called up. If the page is updated, the video disappears.What has already been tried to fix the error:
1) All plugins have been deactivated
2) The child theme has been deactivated
3) The sample video (http://vimeo.com/108453) was used
4) WP and Enfold are up to date.Can someone have a deeper look?. Access data can be found in the private content
May 1, 2020 at 6:54 am #1208727Hey frankeee,
Did you make sure that you have turned off debug on your WordPress installation? https://codex.wordpress.org/WP_DEBUG. Also please check the page in private to see if you can fix any of the issues listed there.
Best regards,
RikardMay 2, 2020 at 11:13 am #1209080Hello Rikard,
since this is a development site, debug is enabled. The debugging should help to find the error! So I’m not going to turn off debugging.So I’m just trying to find out with the support:
1) Why the background video doesn’t work?
2) Why is it first shown and disappears after a reload?
3) Why doesn’t the autoplay function work?So that it is also clear again what has already been tried to fix the error:
1) All plugins have been deactivated
2) The child theme has been deactivated
3) The sample video (http://vimeo.com/108453) was used
4) WP and Enfold are up to date.May 8, 2020 at 2:04 pm #1211027Hi,
Thank you for the update.
Looks like the controls attribute is missing from the array. Please try to edit the enfold\framework\php\function-set-avia-frontend.php file and look for this code around line 746:
$controls = $attributes['controls'] == 1 ? 'controls' : '';
Replace it with:
$controls = array_key_exists('controls', $attributes) ? 'controls' : '';
Also, please note that autoplay may not work if the video is not muted due to a browser policy.
Best regards,
IsmaelMay 9, 2020 at 9:28 am #1211367Hi Ismael,
thanks and please close this – I will hire a freelancer.May 10, 2020 at 6:46 am #1211587 -
AuthorPosts
- The topic ‘Video background not working’ is closed to new replies.