diff --git a/README.md b/README.md index 40399f6..7efaf76 100644 --- a/README.md +++ b/README.md @@ -4,25 +4,25 @@ A Flutter plugin to play audio from URLs, files, assets, DASH/HLS streams and pl ## Features -| Feature | Android | iOS | MacOS | Web | -| ------- | :-------: | :-----: | :-----: | :-----: | -| read from URL | ✅ | ✅ | ✅ | ✅ | -| read from file | ✅ | ✅ | ✅ | | -| read from asset | ✅ | ✅ | ✅ | | -| request headers | ✅ | ✅ | ✅ | | -| DASH | ✅ | (untested) | (untested) | (untested) | -| HLS | ✅ | ✅ | (untested) | (untested) | -| buffer status/position | ✅ | ✅ | ✅ | ✅ | -| play/pause/seek | ✅ | ✅ | ✅ | ✅ | -| set volume | ✅ | ✅ | ✅ | ✅ | -| set speed | ✅ | ✅ | ✅ | ✅ | -| clip audio | ✅ | ✅ | ✅ | ✅ | -| playlists | ✅ | ✅ | ✅ | ✅ | -| looping | ✅ | ✅ | ✅ | ✅ | -| shuffle | ✅ | ✅ | ✅ | ✅ | -| compose audio | ✅ | ✅ | ✅ | ✅ | -| gapless playback | ✅ | ✅ | ✅ | | -| report player errors | ✅ | ✅ | ✅ | ✅ | +| Feature | Android | iOS | MacOS | Web | +| ------- | :-------: | :-----: | :-----: | :-----: | +| read from URL | ✅ | ✅ | ✅ | ✅ | +| read from file | ✅ | ✅ | ✅ | | +| read from asset | ✅ | ✅ | ✅ | | +| request headers | ✅ | ✅ | ✅ | | +| DASH | ✅ | | | | +| HLS | ✅ | ✅ | ✅ | | +| buffer status/position | ✅ | ✅ | ✅ | ✅ | +| play/pause/seek | ✅ | ✅ | ✅ | ✅ | +| set volume | ✅ | ✅ | ✅ | ✅ | +| set speed | ✅ | ✅ | ✅ | ✅ | +| clip audio | ✅ | ✅ | ✅ | ✅ | +| playlists | ✅ | ✅ | ✅ | ✅ | +| looping | ✅ | ✅ | ✅ | ✅ | +| shuffle | ✅ | ✅ | ✅ | ✅ | +| compose audio | ✅ | ✅ | ✅ | ✅ | +| gapless playback | ✅ | ✅ | ✅ | | +| report player errors | ✅ | ✅ | ✅ | ✅ | Please consider reporting any bugs you encounter [here](https://github.com/ryanheise/just_audio/issues) or submitting pull requests [here](https://github.com/ryanheise/just_audio/pulls). diff --git a/lib/just_audio.dart b/lib/just_audio.dart index 28d29c2..2f08c93 100644 --- a/lib/just_audio.dart +++ b/lib/just_audio.dart @@ -896,7 +896,7 @@ abstract class AudioSource { bool hasExtension(Uri uri, String extension) => uri.path.toLowerCase().endsWith('.$extension') || uri.fragment.toLowerCase().endsWith('.$extension'); - if (hasExtension(uri, 'mdp')) { + if (hasExtension(uri, 'mpd')) { return DashAudioSource(uri, headers: headers, tag: tag); } else if (hasExtension(uri, 'm3u8')) { return HlsAudioSource(uri, headers: headers, tag: tag);