StreamAudioSource class abstract

An AudioSource that provides audio dynamically. Subclasses must override request to provide the encoded audio data. This API is experimental.

Inheritance
Implementers
Annotations
  • @experimental

Constructors

StreamAudioSource({dynamic tag})

Properties

duration Duration?
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sequence List<IndexedAudioSource>
no setterinherited
shuffleIndices List<int>
no setterinherited
tag → dynamic
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
request([int? start, int? end]) Future<StreamAudioResponse>
Used by the player to request a byte range of encoded audio data in small chunks, from byte position start inclusive (or from the beginning of the audio data if not specified) to end exclusive (or the end of the audio data if not specified). If the returned future completes with an error, a 500 response will be sent back to the player.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited