Phaser API Documentation

  Version: 
seekTo(value)

Description:

Seeks to a given point in the video. The value is given as a float between 0 and 1, where 0 represents the start of the video and 1 represents the end.

Seeking only works if the video has a duration, so will not work for live streams.

When seeking begins, this video will emit a seeking event. When the video completes seeking (i.e. reaches its designated timestamp) it will emit a seeked event.

If you wish to seek based on time instead, use the Video.setCurrentTime method.

Unfortunately, the DOM video element does not guarantee frame-accurate seeking. This has been an ongoing subject of discussion: https://github.com/w3c/media-and-entertainment/issues/4

Parameters:

name type description
value number

The point in the video to seek to. A value between 0 and 1.

Returns:
Description:

This Video Game Object for method chaining.

Since: 3.20.0