flowplayer / flowplayer-viewport-autoplay

Plugin to start playback when visible in viewport
MIT License
0 stars 2 forks source link

Pausing on scroll off doesn't work after use interaction #5

Closed phloxic closed 7 years ago

phloxic commented 7 years ago

I don't know why because the code to pause is there.

@nnarhinen - any ideas?

phloxic commented 7 years ago

Ah, I see, scroll.autoplay is turned off at the first pause ...

nnarhinen commented 7 years ago

I thought that's how it should work. The scroll stuff is disabled after first interaction of the player.

phloxic commented 7 years ago

Yes, and that leaves players running when you scroll off. See: https://github.com/flowplayer/flowplayer-viewport-autoplay/issues/1#issuecomment-330510889 by @tipiirai

It's also horrible, especially when the sound is on.