 
 import UIKit
 
-internal enum PhoenixAnalyticsType: String {
+enum PhoenixAnalyticsType: String {
     case hit
     case play
     case stop

    }
    
    func registerToAllEvents() {
        
        
        self.messageBus?.addObserver(self, events: [PlayerEvents.ended.self], block: { (info) in
            PKLog.trace("ended info: \(info)")
            self.stopTimer()
            self.delegate?.pluginManagerDidSendAnalyticsEvent(action: .finish)
        })
        
        self.messageBus?.addObserver(self, events: [PlayerEvents.error.self], block: { (info) in
            PKLog.trace("error info: \(info)")
            self.delegate?.pluginManagerDidSendAnalyticsEvent(action: .error)
        })
        
        self.messageBus?.addObserver(self, events: [PlayerEvents.pause.self], block: { (info) in
            PKLog.trace("pause info: \(info)")
            self.delegate?.pluginManagerDidSendAnalyticsEvent(action: .pause)
        })
        
        self.messageBus?.addObserver(self, events: [PlayerEvents.loadedMetadata.self], block: { (info) in
            PKLog.trace("loadedMetadata info: \(info)")
            self.delegate?.pluginManagerDidSendAnalyticsEvent(action: .load)
        })
        
        self.messageBus?.addObserver(self, events: [PlayerEvents.loadedMetadata.self], block: { (info) in
            PKLog.trace("play info: \(info)")
            
            if !self.intervalOn {

        }
        
        registerToAllEvents()
    }
    
    public func destroy() {
