Phaser API Documentation

  Version: 
removeVideoElement()

Description:

Removes the Video element from the DOM by calling parentNode.removeChild on itself.

Also removes the autoplay and src attributes and nulls the Video.video reference.

If you loaded an external video via Video.loadURL then you should call this function to clear up once you are done with the instance, but don't want to destroy this Video Game Object.

This method is called automatically by Video.destroy.

Since: 3.20.0