Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

VideoStream

Inherits: Resource < RefCounted < Object

Inherited By: VideoStreamTheora

Base resource for video streams.

描述

Base resource type for all video streams. Classes that derive from VideoStream can all be used as resource types to play back videos in VideoStreamPlayer.

教程

属性

String

file

""

Methods

VideoStreamPlayback

_instantiate_playback ( ) virtual


Property Descriptions

String file = ""

The video file path or URI that this VideoStream resource handles.

For VideoStreamTheora, this filename should be an Ogg Theora video file with the .ogv extension.


Method Descriptions

VideoStreamPlayback _instantiate_playback ( ) virtual

Called when the video starts playing, to initialize and return a subclass of VideoStreamPlayback.