Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

VideoStreamPlayback

Inherits: Resource < RefCounted < Object

Internal class used by VideoStream to manage playback state when played from a VideoStreamPlayer.

Description

This class is intended to be overridden by video decoder extensions with custom implementations of VideoStream.

Methods

int

_get_channels ( ) virtual const

float

_get_length ( ) virtual const

int

_get_mix_rate ( ) virtual const

float

_get_playback_position ( ) virtual const

Texture2D

_get_texture ( ) virtual const

bool

_is_paused ( ) virtual const

bool

_is_playing ( ) virtual const

void

_play ( ) virtual

void

_seek ( float time ) virtual

void

_set_audio_track ( int idx ) virtual

void

_set_paused ( bool paused ) virtual

void

_stop ( ) virtual

void

_update ( float delta ) virtual

int

mix_audio ( int num_frames, PackedFloat32Array buffer=PackedFloat32Array(), int offset=0 )