VideoFrameクラス

クラス日本語解説は準備中

ひとことで言うと

VideoFrameは、ロブロックス(Roblox)のクラスです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。

公式の説明(英語):A GUI object that renders a rectangle, like a Frame does, with a moving video image.

クラスの関係

受け継いでいるクラス:Object → Instance → GuiBase → GuiBase2d → GuiObject → VideoFrame

プロパティ(12)

名前と書き方説明
IsLoaded
VideoFrame.IsLoaded: boolean
Indicates when the VideoFrame.Video has loaded from Roblox servers and is ready to play.
Looped
VideoFrame.Looped: boolean
Sets whether or not the VideoFrame.Video repeats once it has finished when it is playing.
Playing
VideoFrame.Playing: boolean
Indicates whether the VideoFrame.Video is currently playing. It can be set to start or pause playback.
Resolution
VideoFrame.Resolution: Vector2
Gets the original source resolution of the VideoFrame.Video file.
RollOffMaxDistance
VideoFrame.RollOffMaxDistance: float
The maximum distance, in studs, a listener can be from the video's part and still hear its audio.
RollOffMinDistance
VideoFrame.RollOffMinDistance: float
The minimum distance, in studs, at which the video's audio starts to attenuate.
RollOffMode
VideoFrame.RollOffMode: RollOffMode
Controls how the video's audio volume attenuates with distance.
TimeLength
VideoFrame.TimeLength: double
Indicates the length of the VideoFrame.Video in seconds.
TimePosition
VideoFrame.TimePosition: double
Indicates the progress in seconds of the VideoFrame.Video.
Video
VideoFrame.Video: ContentId
The content ID of the video file a VideoFrame object is associated with.
VideoContent
VideoFrame.VideoContent: Content
The video content a VideoFrame is associated with, as either an asset content ID (same value as Class.VideoFrame.Video|Video) or a direct reference to a VideoCapture object for local screen recordings.
Volume
VideoFrame.Volume: float
Indicates how loud the VideoFrame.Video is currently playing back.

メソッド(2)

名前と書き方説明
Pause
VideoFrame:Pause(): ()
Sets VideoFrame.Playing to false, pausing playback if the VideoFrame.Video is playing.
Play
VideoFrame:Play(): ()
Sets VideoFrame.Playing to true, playing the VideoFrame.Video from the current VideoFrame.TimePosition.

イベント(5)

名前と書き方説明
DidLoop
VideoFrame.DidLoop(video: string)
Fires whenever the VideoFrame.Video loops.
Ended
VideoFrame.Ended(video: string)
Fires when the VideoFrame.Video has completed playback and stopped.
Loaded
VideoFrame.Loaded(video: string)
Fires when the VideoFrame.Video is loaded.
Paused
VideoFrame.Paused(video: string)
This event fires whenever the VideoFrame.Video is paused using Class.VideoFrame:Pause() or by setting VideoFrame.Playing to false.
Played
VideoFrame.Played(video: string)
Fires whenever the VideoFrame.Video is played using the Class.VideoFrame:Play() function or by setting VideoFrame.Playing to true.

受け継いでいるメンバー

GuiObject から受け継いでいるもの(42)

Active・AnchorPoint・AutomaticSize・BackgroundColor3・BackgroundTransparency・BorderColor3・BorderMode・BorderSizePixel・ClipsDescendants・GuiState・InputSink・Interactable・LayoutOrder・NextSelectionDown・NextSelectionLeft・NextSelectionRight・NextSelectionUp・Position・Rotation・Selectable・SelectionImageObject・SelectionOrder・Size・SizeConstraint・Visible・ZIndex・InputBegan・InputChanged・InputEnded・MouseEnter・MouseLeave・MouseMoved・MouseWheelBackward・MouseWheelForward・SelectionGained・SelectionLost・TouchLongPress・TouchPan・TouchPinch・TouchRotate・TouchSwipe・TouchTap

GuiBase2d から受け継いでいるもの(11)

AbsolutePosition・AbsoluteRotation・AbsoluteSize・AutoLocalize・RootLocalizationTable・SelectionBehaviorDown・SelectionBehaviorLeft・SelectionBehaviorRight・SelectionBehaviorUp・SelectionGroup・SelectionChanged

Instance から受け継いでいるもの(46)

Archivable・Capabilities・IsInSandbox・Name・Parent・PredictionMode・Sandboxed・AddTag・ClearAllChildren・Clone・Destroy・FindFirstAncestor・FindFirstAncestorOfClass・FindFirstAncestorWhichIsA・FindFirstChild・FindFirstChildOfClass・FindFirstChildWhichIsA・FindFirstDescendant・GetActor・GetAttribute・GetAttributeChangedSignal・GetAttributes・GetChildren・GetDebugId・GetDescendants・GetFullName・GetStyled・GetStyledPropertyChangedSignal・GetTags・HasTag・IsAncestorOf・IsDescendantOf・IsPropertyModified・QueryDescendants・RemoveTag・ResetPropertyToDefault・SetAttribute・WaitForChild・AncestryChanged・AttributeChanged・ChildAdded・ChildRemoved・DescendantAdded・DescendantRemoving・Destroying・StyledPropertiesChanged

Object から受け継いでいるもの(4)

ClassName・GetPropertyChangedSignal・IsA・Changed

英語の説明とメンバーの一覧は、Roblox Creator Documentation(VideoFrame)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。

執筆:鈴木孝昌官公庁のWeb・システム開発を担当する現役プロジェクトマネージャー。沖縄マイクラ部 クロスウェーブで、ロブロックス(Roblox)・マインクラフト(マイクラ)・Scratchなどのプログラミングを指導。マイクラカップ沖縄代表チームを指導(第6回・第7回、第7回TBS賞)。
沖縄マイクラ部で、子どもたちにロブロックス(Roblox)やマインクラフト(マイクラ)のプログラミングを教えています。プロフィールと編集方針
Instagramで教室の様子を見る
noteで記事を読む