android - Video playback on scroll event (mobile devices) -
is possible bind html5 video playback scroll event on mobile devices? specifically, user able scroll part of page (already have functionality configured via jquery waypoints plugin, , works flawlessly on desktop) , have video automatically start playing.
i aware of of limitations pertaining video playback on mobile devices (link), have been able work around of these problems in past. have began video playback on user tap event interaction, have not attempted via scroll event interaction.
does know if possible? avoid having user tap begin video, , seems since scrolling event tapping or swiping, in theory work. in practice issue.
i have tested on ipad 2 , android 4.2
as understand apple policy on playing html5 video on ios indeed need user interaction initiate playback --- user interaction needs related "button". "scroll" event not valid user interaction initiate playback. stated here
in other words, user-initiated play button works, onload="play()" event not.
my experience android on mobile devices has same limitation.
one approach accomplish want bind fired touch event (like "touch enter site button" or when user touches on link navigate point on page), initiate play sequence on event , pause video until user scrolls want on page , resume playback.
thanks
Comments
Post a Comment