Phaser API Documentation

  Version: 
This is a beta release of our new docs system. Found an issue?
Please tell us about it in the #📖-newdocs-feedback channel on the Phaser Discord
Event: VIDEO_ERROR
Phaser.GameObjects.Events.VIDEO_ERROR
VIDEO_ERROR

Description:

The Video Game Object Error Event.

This event is dispatched when a Video tries to play a source that does not exist, or is the wrong file type.

Listen for it from a Video Game Object instance using Video.on('error', listener).

Parameters:

name type description
video Phaser.GameObjects.Video

The Video Game Object which threw the error.

event Event

The native DOM event the browser raised during playback.

Since: 3.20.0