In some sites, including Facebook, if there is a frame with a video player, when scrolling down the page the player starts playing automatically when it approaches the center of the screen. When scrolling further, it stops playing even before it disappears from the screen.
Does anybody know how to make such a player?
In the examples I saw there is also a Play/Pause button, so that the visitor can stop the player without scrolling it further. And in some sites there is also a switch to disable autoplay. That also would be very helpful.