       extraClasses: ['progress-bar-view']
       eventhub: @eventhub
       value: 0
-      max: @mediaView.duration()
 
     @progressBarView.on 'ValueSliderView:ValueDidChange', @onProgressBarChange
 

    @mediaView?.duration() or @model.duration() or 0


  onProgressBarChange: (progress) =>
    @mediaView.seek progress


    @listenTo @mediaView, 'Media:Progress', (view, elapsed, total) =>
      # keep progress bar in sync
      percent = (elapsed / total * 100)
      @progressBarView.value percent, {silent: true}

  initializeProgressBar: =>
    @progressBarView = new acorn.player.ValueSliderView
