Modernizr: False negative on Video Autoplay (Modernizr V3)

Created on 22 Sep 2014  Â·  15Comments  Â·  Source: Modernizr/Modernizr

After checking how did video Autoplay work on v3, I just opened my website from Firefox and it had a no-videoautoplay class, this is a false negative as it does support it:

screenshot_1

On Chrome, there's another false positive (no-videoautoplay).
On IE11, there's another false positive (no-videoautoplay).
On Opera, it detects it correctly (videoautoplay).

Most helpful comment

Chrome 48.0.2564.116 unreliably detected. First load is OK, subsequent loads shows no-videoautoplay class.

All 15 comments

Ran into this issue also, only way round it I found was to increase the waitTime value, which obviously isn't ideal.

Hey guys
Super sorry about how long it took to reply. This detect is...shaky. The issue is almost certainly load on the site using the detect. Could you share a url where you hit the issue? What was the waitTime that worked for you?

I've set the waitTime to 800 but I'm still seeing false negatives unfortunately. I'm using the autoplay detect on http://moov2.com/built/fable-legends to determine whether to swap an image for a video in the "Video" section if autoplay is supported.

@peterkeating what sort of browsers were you getting the false negatives before you changed the value?

@patrickkettner Primarily this was happening in Chrome v39.

Mobile or desktop? OS x, windows, androind, iOS? Which version of the OS?

On Mon, Dec 1, 2014, 4:05 AM Peter Keating [email protected] wrote:

@patrickkettner https://github.com/patrickkettner Primarily this was
happening in Chrome v39.

—
Reply to this email directly or view it on GitHub
https://github.com/Modernizr/Modernizr/issues/1427#issuecomment-65036509
.

Apologies, Windows desktop.

which version of windows

On Mon, Dec 1, 2014 at 10:54 AM, Peter Keating [email protected]
wrote:

Apologies, Windows desktop.

—
Reply to this email directly or view it on GitHub
https://github.com/Modernizr/Modernizr/issues/1427#issuecomment-65084653
.

patrick

8.1 Pro.

Same problem here.
Windows 7 64 bit.
Autoplay true in Chrome 40.0.2214.38 beta-m
Autoplay false in IE 11.0.9600 and FF 34.0.5.
Both IE and FF suports autoplay.
Adding 10 seconds of wait time does not change the outcome.

I believe I've found the fix wanna test this and see if you get the correct results?

Closed via #1795

Chrome 48.0.2564.116 unreliably detected. First load is OK, subsequent loads shows no-videoautoplay class.

Same on Chrome 55 - first load usually OK, subsequent loads intermittent

Chrome 84.0.4147.105 in Mac 10.15.6 is incorrectly reporting false:
https://codepen.io/glomotion/pen/gOrpoXG
Screen Shot 2020-08-10 at 11 30 08 am
could we plz re-open this issue?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RehanSaeed picture RehanSaeed  Â·  6Comments

claudchan picture claudchan  Â·  7Comments

Markel picture Markel  Â·  8Comments

YounesKeraressi picture YounesKeraressi  Â·  8Comments

flying-sheep picture flying-sheep  Â·  6Comments