So I try to play online streaming song with format song is flac.
The problem is when I seek song duration the player always end the song at wrong duration like this (video demo on this post):
https://stackoverflow.com/questions/64640693/avplayer-currenttime-display-wrong-duration-after-seek-flac-online-streaming-s
Even though it can be fix by add AVURLAssetPreferPreciseDurationAndTimingKey = true at AVURLAsset options is the any other way to fix this? Because using AVURLAssetPreferPreciseDurationAndTimingKey cause load the song take too long time especially when the connection is poor
Source Code sample:
https://github.com/cendolinside123/sample-musicplayeR
tested on iOS: 13.1.2
The problem is when I seek song duration the player always end the song at wrong duration like this (video demo on this post):
https://stackoverflow.com/questions/64640693/avplayer-currenttime-display-wrong-duration-after-seek-flac-online-streaming-s
Even though it can be fix by add AVURLAssetPreferPreciseDurationAndTimingKey = true at AVURLAsset options is the any other way to fix this? Because using AVURLAssetPreferPreciseDurationAndTimingKey cause load the song take too long time especially when the connection is poor
Source Code sample:
https://github.com/cendolinside123/sample-musicplayeR
tested on iOS: 13.1.2