PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

Play

Sets VideoFrame/Playing to true, This plays the VideoFrame/Video, continuing from the current VideoFrame/TimePosition.

Returns

Return Type Summary

No return


Code Samples


Creating and Playing a Video

The code sample below demonstrates how to create and play a VideoFrame with SomeValidAssetID once the video has loaded.

local screenPart = Instance.new("Part", workspace)
local surfaceGui = Instance.new("SurfaceGui", screenPart)
local videoFrame = Instance.new("VideoFrame", surfaceGui)

videoFrame.Looped = true
videoFrame.Video = "SomeValidAssetID" -- replace this with a real rbxassetid://<numbers>

while not videoFrame.IsLoaded do
	wait()
end

videoFrame:Play()