Video Auto Play

Hi Guys,

I have a video in my header at https://pmtvideo.com/

I have the controls set to Preload Content: Auto - No Controls - Autoplay - Muted (see image).

Seems that sometimes it autoplays on load, but most of the time it doesn’t… I see the same results on Chrome, Firefox and Safari…

Any idea why this might be happening?

Thanks for the help!

Hi @jonathanrockett,

Please try to add correct poster image first. I am seeing this error on the console:

mediaelement-and-player.min.js?ver=4.2.13-9993131:12 Uncaught TypeError: Cannot read property 'code' of null
    at HTMLVideoElement.<anonymous> (me

It was due to missing poster image. It was pointing to this image which is missing:
https://pmtvideo.com/wp-content/uploads/2020/04/Header-Video-Thumbnail.jpg 404 (Not Found)

Let’s try checking again after when there’s no error on the console. Let us know how this goes.

Thanks - That makes sense… However, I’ve removed the poster image (I actually don’t want/need one, since it autoplays). So to clarify how it operates:

  1. Will it autoplay without a poster image (that’s my ideal scenario)? I tried adding a poster image back to see if perhaps the Pro video player ‘requires’ a poster image to autoplay, but it still did not autoplay, so…

  2. Since I’ve deleted the poster image I was using previously, yet it is still showing an error, could it be a cache issue in Pro?

Hi @jonathanrockett,

Does it seem you have two instances of that video on your page? Please do mind that only one video player can play at a time regardless if the other videos are hidden or not. You need to turn off the autoplay option on the video player that is showing on mobile.

Hope it helps,
Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.