Capture and manage the events of your AVPlayer in an easy and fast way
You can download this project or follow step by step the creation of the test project in the following link
https://blog.highdeveloper.com/implementacion-y-captura-de-eventos-utilizando-el-avplayer-ios-swift/ (Spanish version)