Skip to content
Roblox API Reference

VideoPlayer

Used to play video assets.
  • Not browsable
Memory category
Instances
Own members
26
Inherited members
75
Subclasses
0
Siblings
608

Properties37

Inherited fromObject2

Property categoryData

Inherited fromInstance21

Property categoryBehavior

Property categoryData

Property categoryPermissions

Defined byVideoPlayer14

Property categoryAsset

  • VideoPlayer.IsLoaded: boolean = false
    Indicates when the VideoContent has loaded and is ready to play.
    • Read only
    • Capabilities: Audio + UI
  • VideoPlayer.Resolution: Vector2 = Vector2.zero
    Gets the original source resolution of the VideoContent file.
    • Read only
    • Capabilities: Audio + UI
  • VideoPlayer.TimeLength: number = 0
    Indicates the length of the VideoContent in seconds.
    • Read only
    • Capabilities: Audio + UI
  • VideoPlayer.VideoContent: Content
    The asset to be loaded into the VideoPlayer.
    • Capabilities: Audio + UI

Property categoryDebug

  • VideoPlayer.AutoLoadInStudio: boolean = false
    Loads the VideoContent while in Studio Edit mode.
    • Not replicated
    • Not scriptable
    • Write: Roblox script security
    • Read capabilities: Audio + UI
  • VideoPlayer.AutoPlayInStudio: boolean = false
    Plays the VideoContent while in Studio Edit mode.
    • Not replicated
    • Not scriptable
    • Write: Roblox script security
    • Read capabilities: Audio + UI

Property categoryPlayback

    • Hidden
    • Read capabilities: Audio + InternalTest + UI
    • Write capabilities: InternalTest
  • VideoPlayer.IsPlaying: boolean = false
    Denotes whether this VideoPlayer is currently playing.
    • Read only
    • Capabilities: Audio + UI
  • VideoPlayer.Looping: boolean = false
    Controls whether this VideoPlayer loops.
    • Capabilities: Audio + UI
  • VideoPlayer.MaximumResolution: Enum.VideoSampleSize = Enum.VideoSampleSize.Full
    Caps the resolution of decoded video frames for this VideoPlayer.
    • Hidden
    • Read capabilities: Audio + InternalTest + UI
    • Write capabilities: InternalTest
  • VideoPlayer.PlaybackSpeed: number = 1
    Controls the speed at which the video is played.
    • Capabilities: Audio + UI
  • VideoPlayer.PlayingReplicating: boolean = false
    • Hidden
    • Not scriptable
    • Capabilities: Audio + UI
  • VideoPlayer.TimePosition: number = 0
    Indicates the progress in seconds of the VideoContent.
    • Capabilities: Audio + UI

Property categoryState

  • VideoPlayer.Volume: number = 1
    Controls how loudly the audio track will be played.
    • Capabilities: Audio + UI

Methods50

Inherited fromObject3
  • Get an event that fires when a given property of the object changes.
    Parameters
    ParameterDescription
    property: string
    The property to connect to.
    Returns
    TypeDescription
    RBXScriptSignal
    A signal that fires whenever the property changes.
  • Object:IsA(className: string): boolean
    Returns true if an object's class matches or inherits from a given class.
    • Custom Lua state
    • Thread safe
    Parameters
    ParameterDescription
    className: string
    The class against which the Object's class will be checked. Case-sensitive.
    Returns
    TypeDescription
    boolean
    Describes whether the Object's class matched or is a subclass of the given class.
  • Object:isA(className: string): boolean
    Deprecated: This deprecated function is a variant of Object:IsA() which should be used instead.
    • Deprecated
    • Custom Lua state
    Parameters
    Parameter
    className: string
    Returns
    Type
    boolean

    Use IsA instead.

Inherited fromInstance39
Defined byVideoPlayer8
  • VideoPlayer:GetConnectedWires(pin: string): { Instance }
    Returns an array of Wires that are connected to the specified pin.
    • Capabilities: Audio + UI
    Parameters
    ParameterDescription
    pin: string
    An input or output pin on this instance
    Returns
    TypeDescription
    { Instance }
    An array of Wires
  • VideoPlayer:GetInputPins(): { any }
    Gets the list of pins that Wire can use in Wire.TargetName to connect to this instance via its Wire.TargetInstance property.
    • Capabilities: Audio + UI
    Returns
    TypeDescription
    { any }
    An array of strings representing valid pin names.
  • VideoPlayer:GetOutputPins(): { any }
    Gets the list of pins that Wire can use in Wire.SourceName to connect to this instance via its Wire.SourceInstance property.
    • Capabilities: Audio + UI
    Returns
    TypeDescription
    { any }
    An array of strings representing valid pin names.
  • VideoPlayer:LoadAsync(): Enum.AssetFetchStatus
    Loads the VideoContent before it is played.
    • Yields
    • Capabilities: Audio + UI
    Returns
    TypeDescription
    Enum.AssetFetchStatus
    An AssetFetchStatus describing the outcome of the load — AssetFetchStatus.Success once the VideoContent has loaded, or a failure status such as AssetFetchStatus.Failure or AssetFetchStatus.TimedOut if it could not be fetched.
  • VideoPlayer:Pause()
    Pauses the VideoPlayer wherever its TimePosition is.
    • Capabilities: Audio + UI
  • VideoPlayer:Play()
    Plays the VideoPlayer from wherever its TimePosition is.
    • Capabilities: Audio + UI
  • VideoPlayer:SetStudioPreview(isPreview: boolean)
    • Roblox script security
    • Capabilities: Audio + UI
    Parameters
    Parameter
    isPreview: boolean
  • VideoPlayer:Unload()
    Unloads the VideoPlayer.VideoContent to save resources.
    • Capabilities: Audio + UI

Events14

Inherited fromObject1
Inherited fromInstance9
Defined byVideoPlayer4