mardi 30 mai 2017

Hammers.js swipe not triggering video autoplay on IOS

I'm working on web app using hammer.js for gesture detection. Main content of the app is mainly video and image slides with texts. My issue is when I trigger video initializing with autoplay on swipe (going from one slide to the other, video is initialized (I use video.js) but is not automatically played.

I tried with a regular mousedown event listenner and it worked. I know IOS block autoplay behaviour when init is not triggered from user action.

Is there any way that hammer.js swipe event is recognized as user action ? Is anyone had the issue.

cheers




Aucun commentaire:

Enregistrer un commentaire