Jump to content

VideoPlayer - Cannot read property 'removeEventListener' of null


Recommended Posts

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 do


Which works great the first time, but then I come back to the same stage. and I start getting those

Uncaught 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


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...