Video

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)

Examples