I found that loading a mp4 video on the preload() function produces a crash in Safari on mobile devices. The page stays on preload indefinitely and doesn’t go to the create. if I refresh the page it goes normally to the create and plays the video without problem.
I’m using the following parameters:
config={
scale: {
mode: Phaser.Scale.FIT,
parent : 'gameContainer',
autoCenter: Phaser.Scale.CENTER_BOTH,
width:888,
height: 520
},
dom: {
createContainer: true
},
pixelArt: true,
type: Phaser.AUTO,
scene: [ loading , intro_1],
transparent: true,
}
The problem only occurs in mobile IOs browsers and only the first time I load the page. I created a project only containing one video and it is still happening. Using Phaser v3.24.1