Describe the bug
A list of AVPlayerItem passed to AudioPlayerDataModel.swift is processed in a for loop to extract the meta data. This takes considerable amount of time and the app freezes for this duration.
To Reproduce
Steps to reproduce the behavior:
Navigate to the share containing list of songs.
Tap on a song from a list.
Expected behavior
Player should load a few songs in the background thread while showing a loader in the UI. Also, instead of processing the complete list in one go, we should process on demand.
Describe the bug A list of
AVPlayerItem
passed toAudioPlayerDataModel.swift
is processed in a for loop to extract the meta data. This takes considerable amount of time and the app freezes for this duration. To Reproduce Steps to reproduce the behavior:Expected behavior
Desktop :
Device :