Fix unknown duration bug in web.
This commit is contained in:
parent
4b4082bcb5
commit
c13efc0cbd
|
@ -282,7 +282,7 @@ class Html5AudioPlayer extends JustAudioPlayer {
|
|||
if (_shuffleModeEnabled) {
|
||||
_audioSourcePlayer?.shuffle(0, _index);
|
||||
}
|
||||
return (await _currentAudioSourcePlayer.load()).inMilliseconds;
|
||||
return (await _currentAudioSourcePlayer.load())?.inMilliseconds;
|
||||
}
|
||||
|
||||
Future<Duration> loadUri(final Uri uri) async {
|
||||
|
|
Loading…
Reference in New Issue