Skip to content

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.

Type Name Default
String file ""
Returns Method
VideoStreamPlayback _instantiate_playback() virtual required

file

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.

_instantiate_playback

VideoStreamPlayback _instantiate_playback() virtual required

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