omarojo Posted August 9, 2015 Share Posted August 9, 2015 Im getting an error, on console but only after I come back to the same stage.Im using Chrome.this.video = this.game.add.video('kentevideo'); // See the docs for the full parameters // But it goes x, y, anchor x, anchor y, scale x, scale y this.video.addToWorld(this.game.world.centerX, this.game.world.centerY, 0.5, 0.5, 1, 1); // true = loop this.video.play(true);Before switching to a different stage I dothis.video.stop();this.video.destroy();Which works great the first time, but then I come back to the same stage. and I start getting thoseUncaught TypeError: Cannot read property 'removeEventListener' of nullc.Video.playHandler @ phaser.min.js:25 I think it happens every time the video makes a loop. Any idea? Link to comment Share on other sites More sharing options...
omarojo Posted August 9, 2015 Author Share Posted August 9, 2015 Apparently, not doing this.video.destroy(); fixed the problem. Link to comment Share on other sites More sharing options...
Recommended Posts