teodorpatras / Jukebox

Player for streaming local and remote audio files. Written in Swift.
MIT License
551 stars 122 forks source link

Moved Creation of AVURLAsset to background thread. #67

Open joelmbell opened 7 years ago

joelmbell commented 7 years ago

Addresses Issue #57

AVURLAsset has some undocumented behavior where passing specific url's to it with the AVAsset(url:) initializer will cause main thread stalls.

I simply moved the creation of this object onto a background thread to avoid any of these potential stalls happening on the main thread.

joelmbell commented 7 years ago

Hmm, not sure why the build failed. All tests pass locally.

Please let me know if there is anything I should be doing differently to get this to pass. I'd happily update the branch.