         }
     }
     var playerTimeObserver: AnyObject?
-    var currentTimePercent: CGFloat? {
-        didSet { updateCurrentTimeBar() }
+    var currentTime: CMTime? {
+        didSet { updateCurrentTime() }
     }
     private lazy var currentTimeBar: NSView = NSView(frame: NSZeroRect) ※ { v in
         v.wantsLayer = true
         v.layer?.backgroundColor = NSColor.redColor().CGColor
         self.addSubview(v)
     }
+    private lazy var currentTimeLabel: NSTextField = NSTextField(frame: NSZeroRect) ※ { tf in
+        tf.bezeled = false
+        tf.editable = false
+        tf.drawsBackground = true
+        tf.font = NSFont.monospacedDigitSystemFontOfSize(12, weight: NSFontWeightRegular)
+        tf.textColor = NSColor.whiteColor()
+        tf.backgroundColor = NSColor.blackColor()
+    }
+
     var imageGenerator: AVAssetImageGenerator?
     var numberOfPages: UInt = 0 {
         didSet { setNeedsDisplayInRect(bounds) }

            player?.removeTimeObserver(playerTimeObserver)
        }

        if  let player = player,
            let item = player.currentItem {
                playerTimeObserver = player.addPeriodicTimeObserverForInterval(CMTime(value: 1, timescale: 30), queue: dispatch_get_main_queue()) { [weak self] time in
                    let duration = item.duration
                    self?.currentTimePercent =
                        CGFloat(time.convertScale(duration.timescale, method: CMTimeRoundingMethod.Default).value)
                        / CGFloat(duration.value)
                }
        }
    }


        
        super.init(frame: NSZeroRect)

        let autolayout = northLayoutFormat([:], [
            "currentTime": currentTimeLabel,
            ])
        autolayout("H:|[currentTime]")
        autolayout("V:[currentTime]|")

        setContentCompressionResistancePriority(NSLayoutPriorityDefaultHigh, forOrientation: .Vertical)
        setContentHuggingPriority(NSLayoutPriorityDefaultHigh, forOrientation: .Vertical)

        observePlayer()
        updateCurrentTime()
    }

    required init?(coder: NSCoder) {
