Skip to content

API

Flightpath.new

Instantiates a new Flightpath object.

Flightpath.new(imageFrame: ImageLabel)

Properties

Flightpath.Video

The current active video

Flightpath.Video = {}

Flightpath.Fps

The frame per seconds for the video

Flightpath.Fps = 60

Flightpath.Looped

Whether the video will loop or not once it goes through all frames

Flightpath.Looped = false

Flightpath.Playing

Video is playing

Flightpath.Playing = true

Flightpath.TimeLength

Read Only

This property is read only.

The time in seconds of the video

print(Flightpath.TimeLength)

Flightpath.TimePosition

Read Only

This property is read only.

The time the video is current in

print(Flightpath.TimePosition)

Methods

Flightpath:Play()

Plays the current video from the start

Flightpath:Play()

Flightpath:Pause()

Pauses the video at its current frame

Flightpath:Pause()

Flightpath:Resume()

Resume the video from its current frame

Flightpath:Resume()

Flightpath:Stop()

Stop the video and reset to initial time position.

Flightpath:Stop()

Flightpath:SetTime(time: number)

Set a timestamp to set for the video in seconds.

Flightpath:SetTime(2) -- Seconds