     else
       min_start
 
-  getEndTime: (mediaObj) ->
+  getEndLine: (mediaObj) ->
     end_at = parseInt(mediaObj.end_at)
     max_end = parseInt(mediaObj.max_end)
     if !@props.ctx_lines

             </div>
         </div>
      </div>
      <div className="jplayer-text autocue"></div>
      <div className="slider-range ui-slider ui-slider-horizontal ui-widget ui-widget-content ui-corner-all" aria-disabled="false">
          <div className="ui-slider-range ui-widget-header ui-corner-all" style={{left: '40%', width: '40%'}}></div>
          <a className="ui-slider-handle ui-state-default ui-corner-all" href="#" style={{left: '40%'}}></a>

    $("#movietitle").text(mediaObj.title)
    last_line = parseInt(mediaObj.last_line)

    $playerNode = $node.find(".jp-jplayer")
    $playerNode.jPlayer
      solution: "flash, html"
      ready: =>
        $playerNode.jPlayer "setMedia",
          rtmpv: path + mov
          m4v: path+mov
          poster: "assets/rglossa/speech/_6.6-%27T%27_ligo.skev.graa.jpg"
        $playerNode.jPlayer( "play", @getStartTime(mediaObj))

      timeupdate: (event) =>
        ct = event.jPlayer.status.currentTime
        if ct > @getEndTime(mediaObj)
          $playerNode = $node.find(".jp-jplayer")
          $playerNode.jPlayer("play", @getStartTime(mediaObj))
          $playerNode.jPlayer( "pause" )
        else if ct > mediaObj.divs.annotation[@state.currentLine].to
          @setState(currentLine: @state.currentLine+1, restart: false)

#      ended: -> alert("ended!")

      swfPath: ""
      supplied: supplied
