Reference API Roblox

Engine API

Website

Related

Reference API Roblox

VideoSampler

An object for sampling frames from video content.

This class is not creatable. Instances of this class cannot be created with Instance.new.
Tags: [NotCreatable]

Member index 3

HistoryMember
698TimeLength: double
698VideoContent: Content
698GetSamplesAtTimesAsync(times: Array): Array
inherited from Object
647ClassName: string
647className: string
647GetPropertyChangedSignal(property: string): RBXScriptSignal
647IsA(className: string): bool
650isA(className: string): bool
647Changed(property: string)

Description

This object lets you get image frames from selected timestamps of a video. To create a VideoSampler, call VideoService:CreateVideoSamplerAsync().

History 4

Members 3

GetSamplesAtTimesAsync

Parameters (1)
timesArray
Returns (1)
Array

This method allows you to get a set of image frames from a video at specified timestamps as image Content objects.

This function yields. It will block the calling thread until completion.

History 1

Tags: [Yields]

TimeLength

TypeDefault
double__api_dump_failed_to_create_class__

The length of the VideoContent in seconds.

This property is not replicated. Its interface does not cross the network boundary.
This property is read-only. Its value can be read, but it cannot be modified.

History 1

Tags: [ReadOnly, NotReplicated]

VideoContent

TypeDefault
Content

The asset loaded into the VideoSampler.

This property is not replicated. Its interface does not cross the network boundary.
This property is read-only. Its value can be read, but it cannot be modified.

History 1

Tags: [ReadOnly, NotReplicated]

Settings