psychos.sound.StreamingSource#

class psychos.sound.StreamingSource[source]#

Bases: Source

A source that is decoded as it is being played.

The source can only be played once at a time on any Player.

__init__()#

Methods

__init__()

delete()

Release the resources held by this StreamingSource.

get_animation()

Import all video frames into memory.

get_audio_data(num_bytes[, compensation_time])

Get next packet of audio data.

get_next_video_frame()

Get the next video frame.

get_next_video_timestamp()

Get the timestamp of the next video frame.

get_queue_source()

Return the Source to be used as the source for a player.

is_precise()

bool: Whether this source is considered precise.

play()

Play the source.

save(filename[, file, encoder])

Save this Source to a file.

seek(timestamp)

Seek to given timestamp.

Attributes

audio_format

duration

The length of the source, in seconds.

info

is_player_source

video_format

delete() None[source]#

Release the resources held by this StreamingSource.

get_queue_source() StreamingSource[source]#

Return the Source to be used as the source for a player.

Default implementation returns self.

Returns:

Source