player
¶
Player functions
| playbackSpeed | number | read/write |
Control playback speed The value is automatically clamped between 0.05 minimum speed and 3.0 maximum speed |
| player.CurrentTime() | Get the current time in the video |
| player.Seek() | Seek to time |
| player.Duration() | Get the duration |
| player.Play() | Control playback |
| player.IsPlaying() | Gets if the player is playing |
| player.CurrentVideo() | Gets the path to the current video |
| player.FPS() | Get the FPS of the video |
| player.Width() | Get the width of the video |
| player.Height() | Get the height of the video |
Control playback speed
The value is automatically clamped between 0.05 minimum speed and 3.0 maximum speed
Get the current time in the video
| (number) | Time in seconds |
Seek to time
| time | (number) | Time in seconds |
| (nil) |
Get the duration
| (number) | Time in seconds |
Control playback
| shouldPlay | (bool or nil) | Toggles when no value is passed. |
| (nil) |
Gets if the player is playing
| (bool) | isPlaying |
Gets the path to the current video
| (string) | Path |
Get the FPS of the video
| (number) | FPS |
Get the width of the video
| (number) | Pixels |
Get the height of the video
| (number) | Pixels |