VIAudioFile class
Class may be used to play audio files.
Constructors
- VIAudioFile.file(String? name, String? type, {VIAudioFileUsage usage = VIAudioFileUsage.unknown})
- Constructs a VIAudioFile to play an audio from a file.
- VIAudioFile.network(String? url, {VIAudioFileUsage usage = VIAudioFileUsage.unknown})
- Constructs a VIAudioFile to play an audio file obtained from the network.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- looped → bool
-
Indicate if the audio file should be played repeatedly or once
no setter
- name → String?
-
Local audio file name
final
- onStopped ↔ VIAudioFileStopped?
-
Invoked when the audio file playing is stopped.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String?
-
Local audio file type/format, for example ".mp3"
final
- url → String?
-
HTTP URL of the stream to play
final
Methods
-
initialize(
) → Future< void> - Initialize and prepare the audio file to play
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
play(
bool looped) → Future< void> - Starts playing the audio file
-
releaseResources(
) → Future< void> - Releases all resources allocated for playing audio file.
-
stop(
) → Future< void> - Stops playing of the audio file
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited