 
 class PhoenixAnalyticsPlugin: PKPlugin {
 
+    enum PhoenixAnalyticsType {
+        case hit
+        case play
+        case stop
+        case pause
+        case first_play
+        case swoosh
+        case load
+        case finish
+        case bitrate_change
+        case error
+    }
+
     private var player: Player!
     private var messageBus: MessageBus?
     private var config: AnalyticsConfig!
+    private var mediaEntry: MediaEntry!
 
     public static var pluginName: String = "PhoenixAnalytics"
     

    }
    
    public func destroy() {

    }
    
    func registerToAllEvents() {
        
    }
}

        
    }
    
    public func load(player: Player, mediaConfig: MediaEntry, pluginConfig: Any?, messageBus: MessageBus) {
        
        self.messageBus = messageBus
        self.mediaEntry = mediaConfig
        
        if let aConfig = config as? AnalyticsConfig {
            self.config = aConfig
