question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

loop: false has no effect when background: true

See original GitHub issue

Expected Behavior

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

Actual Behavior

It loops.

Steps to Reproduce

https://jsfiddle.net/p7daL424/

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
callmephilipcommented, Jan 31, 2018

Just wanted to point out a side effect of this behavior: ended event does not fire for background videos

1reaction
JohnnyWalkerDesigncommented, Jun 21, 2019

Our users have been complaining today about a sudden change to our website… I have tracked it down to this issue apparently reverting.

For other users needing the end of a background video to trigger an event, here’s a possible solution: It’s working OK for us (not perfect, of course):

        player.on('timeupdate', function(data) {
            if(data.percent > 0.95) {
                player.pause();
                window.location.href = "/next-step";
            }
        });

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to loop slides in swiper.js angular? - Stack Overflow
I use something like this: TS: @ViewChild('swiper') swiper: SwiperComponent; animationInProgress = false; config = { slidesPerView: 4, ...
Read more >
Interactivity - learn | p5.js
p5 registers the most recently pressed key and whether a key is currently pressed. The boolean variable keyIsPressed is true if a key...
Read more >
Slides — python-pptx 0.6.21 documentation - Read the Docs
Assigning False causes background inheritance from the master to be interrupted; if there is no custom background for this slide, a default background...
Read more >
Event Loop — Python 3.11.1 documentation
Return the running event loop in the current OS thread. Raise a RuntimeError if there is no running event loop. This function can...
Read more >
Python Figure Reference: layout.xaxis - Plotly
Type: enumerated , one of ( True | False | "reversed" ) Default: True. Determines whether or not the range of this axis...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found