Although the functionality was working correctly, it was by luck. We had a sily mistake where we weren't properly identifying PlayableOfflinedMediaProduct plays comming from our OfflineEngine as offlined, so the check we were doing inside AVQueuePlayerWrapper.canPlay() was incorrect once that was fixed.
This PR solves both issues:
Correctly identify PlayableOfflinedMediaProduct plays as isOfflined: true
Change the check for FLAC files to use the MediaType of the file to decide if it can be played or not
Although the functionality was working correctly, it was by luck. We had a sily mistake where we weren't properly identifying
PlayableOfflinedMediaProduct
plays comming from our OfflineEngine asofflined
, so the check we were doing insideAVQueuePlayerWrapper.canPlay()
was incorrect once that was fixed.This PR solves both issues:
PlayableOfflinedMediaProduct
plays asisOfflined: true
FLAC
files to use theMediaType
of the file to decide if it can be played or not