views:

104

answers:

1

I have a JS function that triggers after 10 seconds of loading a page. One of the tasks that it does is this:

document.body.style.overflow = "hidden"

I have a copy of flowplayer on the page, which autoplays. As soon as the code above is run, the video that is playing reloads, and starts from the beginning. Removing this line, causes no such problems.

The player is the latest version, and the player code is dead basic

<div class=player_image>
<a  style="display:block;width:640px;height:360px" id="player"></a>
<script>
    flowplayer("player", "flowplayer-3.2.2.swf", { 
    playlist: [ 
        {url: 'http://www.domain.com/movie.flv', duration: 100},
        {url: 'http://www.domain.com/movie2.flv', duration: 100}, 
    ], 
        plugins:  { 
        controls: null
    }           
    });
</script>
</div>
A: 

Are you using Firefox? If so, it's because of this bug:

https://bugzilla.mozilla.org/show_bug.cgi?id=90268

Which, after so many years, has gone unfixed, despite the huge number of requests for it.

InfinitiesLoop
Yes, I forgot to mention that it does indeed only occur in Firefox. Well, that kinda sucks.
Yegor