 import UIKit
 
 protocol InteractivePlayerViewDelegate {
+    
     func actionOneButtonTapped(sender : UIButton, isSelected : Bool)
     func actionTwoButtonTapped(sender : UIButton, isSelected : Bool)
     func actionThreeButtonTapped(sender : UIButton, isSelected : Bool)
+    
+    func interactivePlayerViewDidStartPlaying(playerInteractive:InteractivePlayerView)
+     func interactivePlayerViewDidStopPlaying(playerInteractive:InteractivePlayerView)
+    
+    
+    /**
+       @ callbacks in every changes at the duration
+     */
+    func interactivePlayerViewDidChangedDuration(playerInteractive:InteractivePlayerView , currentDuration:Double)
 }
 
 @IBDesignable

    private func startTimer(){
        timer = NSTimer.scheduledTimerWithTimeInterval(0.1, target: self, selector: Selector("updateTime"), userInfo: nil, repeats: true)

    }
    
    private func stopTimer(){

    private var duration : Double{
        didSet{
            redrawStrokeEnd()
            
            if let theDelegate = self.delegate {
                theDelegate.interactivePlayerViewDidChangedDuration(self, currentDuration: duration)
            }
            
        }
    }

