Set Icy Metadata to null on iOS

This commit is contained in:
Ryan Heise 2020-04-21 23:14:39 +10:00
parent 0f57b69ead
commit 24d97848ee
3 changed files with 60 additions and 16 deletions

View file

@ -119,7 +119,7 @@ class AudioPlayer {
bufferedPosition: Duration(milliseconds: data[4]),
speed: _speed,
duration: _duration,
icyMetadata: IcyMetadata(
icyMetadata: data[5] == null ? null : IcyMetadata(
info: IcyInfo(title: data[5][0][0], url: data[5][0][1]),
headers: IcyHeaders(
bitrate: data[5][1][0],