Player.js: Loop: false not respected when background: true

Created on 21 Jun 2019  路  4Comments  路  Source: vimeo/player.js

Expected Behavior

Setting loop: false have an effect regardless of background: true

Actual Behavior

It loops.

Steps to Reproduce

https://jsfiddle.net/p7daL424/

(In other words #200 has reverted.)

Most helpful comment

@JohnnyWalkerDesign @phil-the-dev The background parameter will always set your video to loop by default.

We did previously allow loop to work for background videos, however this behavior has now been reverted in favor of the controls=0 embed parameter. Thecontrols parameter will hide all player controls while offering separate control over looping and muting.

You can read more about this here- https://vimeo.zendesk.com/hc/en-us/articles/360001494447-Using-Player-Parameters

All 4 comments

oh hey, that's the same issue I'm having! My ticket is #446

@JohnnyWalkerDesign @phil-the-dev The background parameter will always set your video to loop by default.

We did previously allow loop to work for background videos, however this behavior has now been reverted in favor of the controls=0 embed parameter. Thecontrols parameter will hide all player controls while offering separate control over looping and muting.

You can read more about this here- https://vimeo.zendesk.com/hc/en-us/articles/360001494447-Using-Player-Parameters

Well it would be great if the SDK documentation noted this sudden change in behaviour, and indeed that a controls option existed at all: https://developer.vimeo.com/player/sdk/embed

Thank you! The controls parameter is in the progress of being added to our main SDK docs, but for now, this information can be referenced in our help center here- https://vimeo.zendesk.com/hc/en-us/articles/360001494447-Using-Player-Parameters.

Was this page helpful?
0 / 5 - 0 ratings