Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

VideoPlayer - Cannot read property 'removeEventListener' of null


omarojo
 Share

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

this.video.stop();this.video.destroy();

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

 Share

  • Recently Browsing   0 members

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