Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1280079

    In all my colour sections with YouTube video back grounds they started stopping at the end of the video and saying. “Video unavailable, this video is unavailable”

    All plugins are up to date and I’ve tried turning them all off. Enfold is fully up to date and WordPress.

    The YouTube video plays once so that’s fine and it’s not in a playlist and has no other videos set to play after it.

    They where working fine for years but around the same time of updating WordPress and the enfold theme they have stopped looping. Unless that’s a coincidence and you guys have a fix please? Many thanks

    • This topic was modified 3 years, 9 months ago by mmsdev.
    #1280409

    Hey mmsdev,

    We are aware of the problem, but we don’t have a solution at the moment. We’ll post any solutions or suggestions here, once we have them.

    Best regards,
    Rikard

    #1280535

    Ok thanks.

    Do you have a time scale on the fix?

    #1280579

    Hi!

    Thank you for the update.

    We might have found the issue with the Youtube player. To fix it, please try this filter in the functions.php file to adjust the Youtube player and disable the playlist parameter, which might be preventing the video from looping.

    add_filter("avf_youtube_video_data", function($data) {
    	unset($data["playlist"]);
    	return $data;
    }, 10, 1);
    

    We will provide the actual fix in the next patch.

    Cheers!
    Ismael

    #1280593

    edited:

    Thats now working, ill need to delete it when the next update come out though>?

    • This reply was modified 3 years, 9 months ago by mmsdev.
    #1281335

    Hi,

    Thank you for the update.

    Glad to know that it is working. We are not yet sure which changes will be included in the next patch, but that filter should still be working on future updates, so you can just keep it as is.

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.