Skip to content

Class

VideoSampler

Official docs ↗

An object for sampling frames from video content.

About VideoSampler

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

Properties 2

  • TimeLength: doubleReadOnlyNotReplicatedThe length of the VideoContent in seconds.
  • VideoContent: ContentReadOnlyNotReplicatedThe asset loaded into the VideoSampler.

Methods 1

  • GetSamplesAtTimesAsync(times: Array) → List<VideoSample>YieldsGets image frames at the specified timestamps.

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

Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.