I'm using `AVPlayer` as an audio player and I need...
# ios
y
I'm using
AVPlayer
as an audio player and I need to know which coroutine dispatcher I should use for performing actions on it. In Android, ExoPlayer requires operations to run on the main thread. Do you have any suggestions for handling this in a similar way with
AVPlayer
?
f
You don’t need to run on a specific thread, it will do it itself. Just, You need to keep the instance of AVPlayer alive