• First of all, great plugin, it was exactly what I was looking for.

    The only issue I’m having is with the amount of time it takes for the video to load and autoplay. I’m using the video as the background of the home hero unit, and it’s crucial that it starts as quickly as possible. Right now, it’s taking between 4-5 seconds to start, which is just too long.

    If I view the video on Youtube it starts instantly, so it’s not an issue with my connection or the video itself. The page itself is quite light, it’s not as if there’s a ton of resources to load before the video. It just seems to take about ~2 seconds to load the iframe, and other ~2 for the video to actually start.

    So basically, is there anything I can do on the plugin’s side to expedite the load time or is this just a limitation of using an embedded iframe that can’t be worked around?

    https://ww.wp.xz.cn/plugins/wpmbytplayer/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author pupunzi

    (@pupunzi)

    Hi,
    That is the time the Youtube API takes to get ready and play… If you want to experiment on that you are welcome; I’ve not been able to shorter it.
    Take in mind that in the case of youtube the video has a standard size once you get the page (it is not full-screen); that means they start with a low resolution instance while in our case the video has a over-sized size forcing Youtube to load the max resolution resource for that video and that takes more time (it’s just a miracle it takes 2 sec to start playing).

    What I can suggest is to set a background image to the body via CSS that will be visible before the video loads.

    Bye,
    Matteo

    Thread Starter Josh88

    (@josh88)

    Yea, I have the first frame as a background image already but having it visible for 4-5 sec before the video starts just doesn’t look very good.

    I see what you’re saying about the resolution. I think between the time it takes to make the http request and load the iframe followed by having to load the video at max res, 4-5 seconds makes sense. I don’t see how it could be easily reduced.

    Maybe YouTube just isn’t the best host for what I’m looking for. Thanks anyway for your help.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Video Load Times’ is closed to new replies.