I know this question is all over Stack Overflow but still, most of them are old and not related with what I\'m going to ask here.
So I\'ve got an array with AV
The problem is that you're creating a new player object when you update the array of items with this line (in tableView:commitEditingStyle:forRowAtIndexPath:),
audioPlayer = AVQueuePlayer(items: mediaArray)
It seems that the player items are still associated with the original player when you do this. You should be able to delete that line, to make it work properly. Inserting or deleting items from mediaArray should be enough to do what you want; you don't need to create a new player.