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
Facing the same issue in Phaser 3.60.0 with the video game object does not have frame property. I am using rex's UI plugin (v1.60.2) as well, and for example if I try to add a video object into a UI sizer, same error Cannot read properties of null (reading 'realWidth') at Video.get [as displayWidth] will be shown.
A temporary solution I found is to assign a random placeholder texture to the video. For example, from the same test code, add an image load to the preloader
Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.
Version
Description
Video game object does not have
frame
property, thus it can't getvideo.frame.realWidth
for setDisplaySize methodExample Test Code
From this test code,
Replace line 15 to
And it will show error message
BTW, how to preload video coss-origin?
Previously,
asBlob
parameter seems can be used for coss-origin.Additional Information
The text was updated successfully, but these errors were encountered: