AVPlayer implementation in Swift