DashAudioSource class Null safety

An AudioSource representing a DASH stream. 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. Currently headers are not recursively applied to items the HTTP(S) request. Currently headers are not applied recursively.

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



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


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


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


operator ==(Object other) bool
The equality operator. [...]