• I added a video to a site header that works just fine on Chrome and Firefox, but doesn’t autoplay on Safari. I’ve read that a lot of other people have had that problem but it wasn’t clear what solution there was. The video has no audio.

    It did seem like there might have been success with adding the playsinline. Here is an example that is missing the proper < > around the video tags because it was messing up this post:
    video> autoplay loop muted playsinline src=”…”></video

    To get the video working in general I followed a tutorial and added this to functions.php for the Hestia theme.

    add_theme_support( ‘custom-header’, array(
    ‘video’ => true
    ));

    And then added this to header.php
    The video is then selected through the theme’s customize option.

    How would I even go about adding playsinline? And does playsinline even work as a solution?

    As a note I don’t have a mac computer to test on so it makes it even harder. This is something a client wants.

    Thank you so much for your help!

    – Mike


    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Getting a video to autoplay on Safari’ is closed to new replies.