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)
| 名前と書き方 | 説明 |
|---|---|
IsLoadedVideoFrame.IsLoaded: boolean | Indicates when the VideoFrame.Video has loaded from Roblox servers and is ready to play. |
LoopedVideoFrame.Looped: boolean | Sets whether or not the VideoFrame.Video repeats once it has finished when it is playing. |
PlayingVideoFrame.Playing: boolean | Indicates whether the VideoFrame.Video is currently playing. It can be set to start or pause playback. |
ResolutionVideoFrame.Resolution: Vector2 | Gets the original source resolution of the VideoFrame.Video file. |
RollOffMaxDistanceVideoFrame.RollOffMaxDistance: float | The maximum distance, in studs, a listener can be from the video's part and still hear its audio. |
RollOffMinDistanceVideoFrame.RollOffMinDistance: float | The minimum distance, in studs, at which the video's audio starts to attenuate. |
RollOffModeVideoFrame.RollOffMode: RollOffMode | Controls how the video's audio volume attenuates with distance. |
TimeLengthVideoFrame.TimeLength: double | Indicates the length of the VideoFrame.Video in seconds. |
TimePositionVideoFrame.TimePosition: double | Indicates the progress in seconds of the VideoFrame.Video. |
VideoVideoFrame.Video: ContentId | The content ID of the video file a VideoFrame object is associated with. |
VideoContentVideoFrame.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. |
VolumeVideoFrame.Volume: float | Indicates how loud the VideoFrame.Video is currently playing back. |
メソッド(2)
| 名前と書き方 | 説明 |
|---|---|
PauseVideoFrame:Pause(): () | Sets VideoFrame.Playing to false, pausing playback if the VideoFrame.Video is playing. |
PlayVideoFrame:Play(): () | Sets VideoFrame.Playing to true, playing the VideoFrame.Video from the current VideoFrame.TimePosition. |
イベント(5)
| 名前と書き方 | 説明 |
|---|---|
DidLoopVideoFrame.DidLoop(video: string) | Fires whenever the VideoFrame.Video loops. |
EndedVideoFrame.Ended(video: string) | Fires when the VideoFrame.Video has completed playback and stopped. |
LoadedVideoFrame.Loaded(video: string) | Fires when the VideoFrame.Video is loaded. |
PausedVideoFrame.Paused(video: string) | This event fires whenever the VideoFrame.Video is paused using Class.VideoFrame:Pause() or by setting VideoFrame.Playing to false. |
PlayedVideoFrame.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)
英語の説明とメンバーの一覧は、Roblox Creator Documentation(VideoFrame)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。