Phaser API Documentation

  Version: 
getProgress()

Description:

Returns the current progress of the video as a float.

Progress is defined as a value between 0 (the start) and 1 (the end).

Progress can only be returned if the video has a duration. Some videos, such as those coming from a live stream, do not have a duration. In this case the method will return -1.

Returns:
Description:

The current progress of playback. If the video has no duration, will always return -1.

Type:
  • number
Since: 3.20.0