ProgressiveAudioSource class Null safety

An AudioSource representing a regular media file such as an MP3 or M4A file. The following URI schemes are supported:

  • file: loads from a local file (provided you give your app permission to access that file).
  • asset: loads from a Flutter asset (not supported on Web).
  • http(s): loads from an HTTP(S) resource.

On platforms except for the web, the supplied headers will be passed with the HTTP(S) request.

If headers are set, just_audio will create a cleartext local HTTP proxy on your device to forward HTTP requests with headers included.

Inheritance

Constructors

ProgressiveAudioSource(Uri uri, {Map<String, String>? headers, dynamic tag, Duration? duration})

Properties

duration Duration?
read / writeinherited
hashCode int
The hash code for this object.
read-onlyinherited
headers Map<String, String>?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
sequence List<IndexedAudioSource>
read-onlyinherited
shuffleIndices List<int>
read-onlyinherited
tag → dynamic
finalinherited
uri Uri
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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