Phaser API Documentation

  Version: 
setLoop([value])

Description:

Sets the loop state of the current video.

The value given is a boolean which indicates whether the media element will start over when it reaches the end.

Not all videos can loop, for example live streams.

Please note that not all browsers support seamless video looping for all encoding formats.

Parameters:

name type arguments Default description
value boolean <optional> true

A boolean which indicates whether the media element will start over when it reaches the end.

Returns:
Description:

This Video Game Object for method chaining.

Since: 3.20.0