Fix RangeError on web client. (#93)
This commit is contained in:
parent
3dfcef6ef1
commit
1106d66d74
|
@ -119,7 +119,7 @@ class AudioPlayer {
|
||||||
bufferedPosition: Duration(milliseconds: data[4]),
|
bufferedPosition: Duration(milliseconds: data[4]),
|
||||||
speed: _speed,
|
speed: _speed,
|
||||||
duration: _duration,
|
duration: _duration,
|
||||||
icyMetadata: data[5] == null
|
icyMetadata: data.length < 6 || data[5] == null
|
||||||
? null
|
? null
|
||||||
: IcyMetadata(
|
: IcyMetadata(
|
||||||
info: IcyInfo(title: data[5][0][0], url: data[5][0][1]),
|
info: IcyInfo(title: data[5][0][0], url: data[5][0][1]),
|
||||||
|
|
Loading…
Reference in New Issue