• Resolved jdy98p

    (@jdy98p)


    I’m having an issue getting autoplay to work in the shortcode, and it appears it’s because Chrome and Safari *won’t* allow autoplay unless the video is muted.

    Is there a way to auto-mute when I set autoplay in the shortcode?

    As a side note, I had the same issue trying to use autoplay in Elementor (using a Youtube video), but when I muted the video by default in the Elementor settings…it worked.

    • This topic was modified 1 year, 9 months ago by jdy98p.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author BaneD

    (@baned)

    Hi there, glad to hear from you again ??

    The block of playback without muting the video is done by browsers so as to avoid having a page open with screaming loud music (or scream). While each browser does this differently, they generally allow the audio to be heard if there is some interaction with the page first. This is why autoplay is often muted at first.

    Our system is designed to actually detect this and start automatically muted with the playback if the video would not play otherwise.

    The battery related settings also plays some part in this. If you have tried opening the page with video that is running on a mobile device (including laptops here), then the power saving might actually stop the playback of the video before our system can mute it automatically, or if you leave your page open without interaction it might also suspend the playback.

    As this is all part of OS and browser there is not much we can do about it.

    • This is a very common thing on mobile devices running Mac OS or iOS.

    With all that out of the way though, what you can do is to try setting this code directly into the page:

    <ziggeoplayer ziggeo-video="YOUR_VIDEO_TOKEN" ziggeo-autoplay="true"></ziggeoplayer>

    This would then allow you to see if there is anything specific to shortcode causing it or if it is same for our native embeddings (which is most likely the case).

    Additionally I do want to say that position of the video and size of it can play a role – depending on the browser, however let’s first see if the video plays muted for you using the above code or not to know if something is wrong with shortcode.

    Thread Starter jdy98p

    (@jdy98p)

    The HTML version worked…but I was also inspired to try autoplay=’true’ in the shortcode. And that worked!

    I was under the impression that it defaulted to true, but apparently I have to declare it.

    Plugin Author BaneD

    (@baned)

    Great, glad it did work that way ??

    Can you please let us know the shortcode here so that we can test with it? It is possible that (due to some bug or such) it was not seeing it properly, and had not applied the autoplay feature when “=true” was not present.

    • Fine to remove the video token or app token from shortcode if present, just replace it with “TOKEN” or anything else.
    Thread Starter jdy98p

    (@jdy98p)

    I use the below shortcode. If I’d been thinking, I’d have realized that I needed to declare all the other defaults as well before they worked. I haven’t gotten the attributes to work without declaration.

    [ziggeoplayer video='TOKEN' ' width='100%' height='auto' playfullscreenonmobile='true' fullscreenmandatory='true' theme='default' themecolor='white' autoplay='true']
    Plugin Author BaneD

    (@baned)

    Great thank you.

    If I understood you correctly with the shortcode you sent now:

    [ziggeoplayer video='TOKEN' width='100%' height='auto' playfullscreenonmobile='true' fullscreenmandatory='true' theme='default' themecolor='white' autoplay='true']

    it is working and that the following one did not work:

    [ziggeoplayer video='TOKEN' width='100%' height='auto' playfullscreenonmobile fullscreenmandatory theme='default' themecolor='white' autoplay]

    PS: The values for theme color we have are “red”, “green” and “blue”. Any other value should fallback to the default grayish color and for the height to be set to auto value, it is best not to set it at all.

    [ziggeoplayer video='TOKEN' width='100%' playfullscreenonmobile='true' fullscreenmandatory='true' theme='default' themecolor='blue' autoplay='true']
    Thread Starter jdy98p

    (@jdy98p)

    Correct, first example you posted is working. And if I don’t add =’true’ to the other options (i.e. playfullscreenonmobile & fullscreenmandatory), they won’t work either.

    Plugin Author BaneD

    (@baned)

    Great, thank you for letting us know.

    I would mark this as resolved since the solution is available, however the goal for myself is to make checks to be sure this is not present in the v3.0. We are currently at the stage where we are testing everything and will update the docs, so perfect time to make sure there are not issues like this that get carried over.

    Thank you for your time and looking forward to hearing from you again ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Auto-mute for autoplay’ is closed to new replies.