Stunt Pixels Posted January 16, 2017 Share Posted January 16, 2017 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 More sharing options...
Stunt Pixels Posted January 17, 2017 Author Share Posted January 17, 2017 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 More sharing options...
Puppy Club Dev Posted August 28, 2017 Share Posted August 28, 2017 @endual having the same issue. You make any progress on this? Link to comment Share on other sites More sharing options...
Stunt Pixels Posted August 29, 2017 Author Share Posted August 29, 2017 @Puppy Club Dev I ended up monkey patching it in Phaser#Video#unlock Easy enough, but a little ugly. Link to comment Share on other sites More sharing options...
samme Posted January 16, 2018 Share Posted January 16, 2018 phaser-ce/commit/e2efadbbb57af886bf4bdd071bd8cd4d09ff05fc Link to comment Share on other sites More sharing options...
Recommended Posts