Swift AVPlayerItem close when finished
问题 I'm extremely new to Swift and iOS development, so please forgive my ignorance. I'm trying to have the AVPlayer close automatically when the video is done playing. I've thought to attach the "playerDidFinishPlaying" listener to receive the notification, but once I have it, I can't find the method/event to close the Controller. I'm looking to mimic the action of clicking the "Done" button. Here is a small snippet of code. Hopefully this is enough information. If not, I can provide further info