We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ee0de9 commit f092101Copy full SHA for f092101
1 file changed
src/gameobjects/components/LoadTexture.js
@@ -64,6 +64,16 @@ Phaser.Component.LoadTexture.prototype = {
64
setFrame = !this.animations.loadFrameData(this.game.cache.getFrameData(key.key, Phaser.Cache.BITMAPDATA), frame);
65
}
66
67
+ else if (Phaser.Video && key instanceof Phaser.Video)
68
+ {
69
+ // This works from a reference, which probably isn't what we need here
70
+ this.setTexture(key.texture);
71
+
72
+ if (this.game.cache.getFrameData(key.key, Phaser.Cache.VIDEO))
73
74
+ setFrame = !this.animations.loadFrameData(this.game.cache.getFrameData(key.key, Phaser.Cache.VIDEO), frame);
75
+ }
76
77
else if (key instanceof PIXI.Texture)
78
{
79
this.setTexture(key);
0 commit comments