Video

The Video class extends the Item class to manage video playback within an engine environment, facilitating precise control over video content. This class is particularly useful for applications requiring interactive video manipulation, such as media players or a game cutscene.

Inherits from

Usage

To use this class, add the following require at the top of your script:

local Video = require 'engine/items/video'

Reference

class Video
module:
play()

Play the video

pause()

Pause the video

setTimeAbsolute(time)

Set absolute video time in milliseconds

Parameters:

time (any)

setTimeRelative(time)

Set relative video time (between 0 and 1).

Parameters:

time (any)