 
 #if os(iOS)
 
-class AudioPlayer {
+class AudioPlayer: NSObject {
+  let defaultNotificationCenter = NotificationCenter.default
+
   var player: AVPlayer?
   var currentTrackIndex: Int=0
+
+  open var currentItem: MediaItem? {
+    guard currentTrackIndex >= 0 && currentTrackIndex < items.count else {
+      return nil
+    }
+
+    return items[currentTrackIndex]
+  }
 
   var playerUI: APController!
   var items: [MediaItem]!

    if let audioPath = getMediaUrl(path: path) {
      let asset = AVAsset(url: audioPath)
      let playerItem = AVPlayerItem(asset: asset)

      player = AVPlayer(playerItem: playerItem)
    }

          play()
      }
    }
    else {
      play()
    }
  }

  func pause() {
