         self.removeAllAnimations()
     }
     
-    func setButtonState(buttonState: PlaybackButtonState, animated: Bool) {
+    public func setButtonState(buttonState: PlaybackButtonState, animated: Bool) {
         if self.buttonState == buttonState {
             return
         }


import UIKit


@objc enum PlaybackButtonState : Int {
    case None = 0
    case Pausing
    case Playing
    case Pending
    
    var value: CGFloat {
        switch self {
        case .None:
            return 0.0

    }
}

@objc public class PlaybackLayer: CALayer {
    
    private static let kAnimationKey = "playbackValue"
    private static let kAnimationIdentifier = "playbackLayerAnimation"
    
    public var adjustMarginValue: CGFloat = 0
    public var contentEdgeInsets = UIEdgeInsetsZero
    public var buttonState = PlaybackButtonState.Pausing
    public var playbackValue: CGFloat = 1.0 {
        didSet {
            setNeedsDisplay()
        }
    }
    public var pausingColor = UIColor.whiteColor()
    public var playingColor = UIColor.whiteColor()
    public var pendingColor = UIColor.whiteColor()
    
    override init() {
        super.init()
