Video
Videos embed Roblox VideoFrame content with playback controls.
Playground
Video Unavailable
Restart automatically when finished.
Start playback immediately.
Usage
You can create a Video element by calling AddVideo on a Groupbox.
Arguments
| Arg Idx | Argument Description | Type | Default |
|---|---|---|---|
| 1 | Index/ID of the video element | string | nil |
| 2 | Video configuration table | table | nil |
Configuration Table
Prop
Type
Methods
You can use the following methods to interact with the video element:
SetVideo
Updates the video source.
| Arg Idx | Argument Description | Type | Default |
|---|---|---|---|
| 1 | Video asset ID or URL | string | nil |
SetLooped
Changes whether the video loops.
| Arg Idx | Argument Description | Type | Default |
|---|---|---|---|
| 1 | Whether the video should loop | boolean | nil |
SetPlaying
Starts or pauses playback.
| Arg Idx | Argument Description | Type | Default |
|---|---|---|---|
| 1 | Whether the video should be playing | boolean | nil |
SetVolume
Adjusts the playback volume.
| Arg Idx | Argument Description | Type | Default |
|---|---|---|---|
| 1 | Volume | number | nil |
Play
Convenience wrapper that starts playback.
Pause
Convenience wrapper that pauses playback.
SetHeight
Adjusts the frame height.
| Arg Idx | Argument Description | Type | Default |
|---|---|---|---|
| 1 | Frame height in pixels | number | nil |
SetVisible
Shows or hides the video element.
| Arg Idx | Argument Description | Type | Default |
|---|---|---|---|
| 1 | Visibility toggle | boolean | nil |