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 / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
headers Map<String, String>?
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sequence List<IndexedAudioSource>
read-only, inherited
shuffleIndices List<int>
read-only, inherited
tag → dynamic
final, inherited
uri Uri
final, inherited

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