• Resolved stevekris73

    (@stevekris73)


    Simply Static is generally working great with Bricksbuilder and latest WP. My only issue so far testing it out, is that it don’t seem to be able to fetch self-hosted background MP4-videos in containers. I’ve tried adding the mp4-file URLs to the “Include – Additional Files and Directories” section in SS, but no luck. It will play Vimeo-hosted background video URLs however, but I try to avoid this in this instance. What will show now in the static version, is what is called “Poster image (File URL)” in Bricks – which basicly is a backup image for the video.

    Any pointers or tips?

Viewing 1 replies (of 1 total)
  • Plugin Author patrickposner

    (@patrickposner)

    Hey @stevekris73,

    happy to help!

    I can see two potential problems here:

    The markup:

    Simply Static probably does not know yet about the markup structure, and that’s why it’s not fetching the content of the HTML attribute.

    We have a filter to do this, but if you can show me an example, we can also add it right away into the plugin:

    add_filter('ss_match_tags', function( $tags ) {
    $tags['div'] = [ 'href', 'src', 'style' ];
    $tags['li'] = [ 'style' ];
    $tags['span'] = [ 'style' ];

    return $tags;
    } );

    Timeout during fetching:

    Another reason for this could be a timeout while downloading the file via wp_remote_get().

    The easiest way to check that would be to use the debugging mode and search inside the log file for the URL of the file: https://docs.simplystatic.com/article/72-how-to-use-the-debugging-mode

    You can also adjust the default configuration of the arguments we pass to wp_remote_get to (for example) increase the timeout limit: https://docs.simplystatic.com/article/12-ssremotegetargs

    Hope that helps!
    Patrick

Viewing 1 replies (of 1 total)

The topic ‘Problems fetching self-hosted background video’ is closed to new replies.