You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I added video and play it automatically on a scene.
While it plays well on my desktop using Chrome or Safari, on devices like iPhone 6 running iOS 12 or an iPhone X running iOS 14.5, iPhone 11 Pro Max running iOS 13 it is almost not playing at all, a few frames and then the frames are not updating.
It is displaying without issue on an iPhone 11 Pro running iOS 16.6.
Note that the mp4 video is just a 30 seconds of 2 MB, and if we toggle the sound on we can hear the sound and if we add a progress bar of the video, it will be updated. It is like the display isn't following fast enough the video.
The text was updated successfully, but these errors were encountered:
AlexandreK38
changed the title
Phaser 3 Video lagging on "old" iOS devices/versions
Phaser 3 Video lagging on "old" iOS versions
Feb 3, 2024
I tested a bit more and displaying a video in the page using <video> tag is working, so then I tried switching the config type to Phaser.CANVAS and it's playing well too.
I guess the issue is the video with the WEBGL renderer
I'm not sure there's anything we can specifically do about this. Videos are played using the video tag and we capture each frame and store it in a WebGL texture. The larger the video (in resolution, not file size) the more GPU grunt power is required to do this. The older the device, the more effort it requires. I would recommend for those devices using the Rex Video Plugin, as it will essentially use a video dom object and skip capturing it to a WebGL texture, much like your experiment did.
Version
Safari iOS
Description
Hi,
I added video and play it automatically on a scene.
While it plays well on my desktop using Chrome or Safari, on devices like iPhone 6 running iOS 12 or an iPhone X running iOS 14.5, iPhone 11 Pro Max running iOS 13 it is almost not playing at all, a few frames and then the frames are not updating.
It is displaying without issue on an iPhone 11 Pro running iOS 16.6.
Example Test Code
Note that the mp4 video is just a 30 seconds of 2 MB, and if we toggle the sound on we can hear the sound and if we add a progress bar of the video, it will be updated. It is like the display isn't following fast enough the video.
The text was updated successfully, but these errors were encountered: