psychos.sound.StreamingSource#
- class psychos.sound.StreamingSource[source]#
Bases:
SourceA 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.
Return the
Sourceto 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_formatdurationThe length of the source, in seconds.
infois_player_sourcevideo_format- get_queue_source() StreamingSource[source]#
Return the
Sourceto be used as the source for a player.Default implementation returns self.
- Returns:
Source