Jump to content

Prevent iOS video autoplay on touch unlocking?


Stunt Pixels
 Share

Recommended Posts

Hey, I have some videos I need manual control over. For non iOS devices, they're working fine. But with iOS devices the videos all automatically play simultaneously on user interaction (which is touch unlocking them).

Is there a clean way to flag off autoplay on touch unlocking?

Cheers

Link to comment
Share on other sites

I've put a sample showing this behaviour up at - http://stuntpixels.com/foo/ - and a zip at - http://stuntpixels.com/foo/foo.zip

For various reasons, I need to ensure some videos are preloaded before playing the next state – for this demo case I'm showing it all in the one state. Only the 'create' and 'preload' functions are required to display the issue - the other functions are just there to check video preload progress.

If this is loaded into a desktop browser, it runs fine. In a mobile, or emulation of a mobile, the videos both play once the canvas is clicked after they're loaded - even though the movies are never added to the game world.

Ideas?

Link to comment
Share on other sites

  • 7 months later...
  • 4 months later...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...