# VideoPlayer(ロブロックス クラス) > Used to play video assets. - URL:https://roblox.minecraft-okinawa.com/reference/classes/VideoPlayer/ - 公式:https://create.roblox.com/docs/reference/engine/classes/VideoPlayer - 受け継いでいるクラス:Instance ## プロパティ - `VideoPlayer.AutoLoadInStudio: boolean`:Loads the Class.VideoPlayer.VideoContent|VideoContent while in Studio Edit mode. - `VideoPlayer.AutoPlayInStudio: boolean`:Plays the Class.VideoPlayer.VideoContent|VideoContent while in Studio Edit mode. - `VideoPlayer.IsLoaded: boolean`:Indicates when the Class.VideoPlayer.VideoContent|VideoContent has loaded and is ready to play. - `VideoPlayer.IsPlaying: boolean`:Denotes whether this VideoPlayer is currently playing. - `VideoPlayer.Looping: boolean`:Controls whether this VideoPlayer loops. - `VideoPlayer.PlaybackSpeed: float`:Controls the speed at which the video is played. - `VideoPlayer.Resolution: Vector2`:Gets the original source resolution of the Class.VideoPlayer.VideoContent|VideoContent file. - `VideoPlayer.TimeLength: double`:Indicates the length of the Class.VideoPlayer.VideoContent|VideoContent in seconds. - `VideoPlayer.TimePosition: double`:Indicates the progress in seconds of the Class.VideoPlayer.VideoContent|VideoContent. - `VideoPlayer.VideoContent: Content`:The asset to be loaded into the VideoPlayer. - `VideoPlayer.Volume: float`:Controls how loudly the audio track will be played. ## メソッド - `VideoPlayer:GetConnectedWires(pin: string): List`:Returns an array of Class.Wire|Wires that are connected to the specified pin. - `VideoPlayer:GetInputPins(): Array`:Gets the list of pins that Wire can use in Wire.TargetName to connect to this instance via its Wire.TargetInstance property. - `VideoPlayer:GetOutputPins(): Array`:Gets the list of pins that Wire can use in Wire.SourceName to connect to this instance via its Wire.SourceInstance property. - `VideoPlayer:LoadAsync(): AssetFetchStatus`:Loads the Class.VideoPlayer.VideoContent|VideoContent before it is played. - `VideoPlayer:Pause(): ()`:Pauses the VideoPlayer wherever its Class.VideoPlayer.TimePosition|TimePosition is. - `VideoPlayer:Play(): ()`:Plays the VideoPlayer from wherever its Class.VideoPlayer.TimePosition|TimePosition is. - `VideoPlayer:Unload(): ()`:Unloads the VideoPlayer.VideoContent to save resources. ## イベント - `VideoPlayer.DidEnd()`:Fires when the Class.VideoPlayer.VideoContent|VideoContent has completed playback and stopped. - `VideoPlayer.DidLoop()`:Fires when the Class.VideoPlayer.VideoContent|VideoContent loops. - `VideoPlayer.PlayFailed(error: AssetFetchStatus)`:Fires when the VideoPlayer fails to load or play its Class.VideoPlayer.VideoContent|VideoContent. - `VideoPlayer.WiringChanged(connected: boolean, pin: string, wire: Wire, instance: Instance)`:Fires when another instance is connected to or disconnected from the VideoPlayer via a Wire. 英語の説明とメンバー一覧:Roblox Creator Documentation(CC BY 4.0)。日本語の解説はこのサイト独自のものです。 執筆:鈴木孝昌(現役プロジェクトマネージャー/プログラミング講師)/運営:沖縄マイクラ部 プログラミングスクール「クロスウェーブ」(https://minecraft-okinawa.com/)