Phaser API Documentation

  Version: 
stop([emitStopEvent])

Description:

Stops the video playing and clears all internal event listeners.

If you only wish to pause playback of the video, and resume it a later time, use the Video.pause method instead.

If the video hasn't finished downloading, calling this method will not abort the download. To do that you need to call destroy instead.

Parameters:

name type arguments Default description
emitStopEvent boolean <optional> true

Should the VIDEO_STOP event be emitted?

Returns:
Description:

This Video Game Object for method chaining.

Since: 3.20.0