 
   getSnapshot: ->
     @recording.getSnapshotAtFrameIndex(@index)
+
+  getTimeToNextFrame: ->
+    current = @recording.getTimestampAtFrameIndex(@index)
+    next = @recording.getTimestampAtFrameIndex(@index + 1)
+    duration = if current? and next? then next - current else 0
+    Math.min(duration, 500)

      @stop()
    else
      @seek(@index + 1)
      @timeout = setTimeout(@tick, @interval)

  seek: (index) ->
    previousIndex = @index

    @playing = false
    @index = -1
    @length = @recording.getFrameCount()

  play: ->
    return if @playing
