 ROOT_STYLE = display: 'block'
 CONTAINER_STYLE = display: 'inline-block', position: 'relative'
 SUBJECT_STYLE = display: 'block'
-PLAYING_FRAME_DURATION = 667
 
 module.exports = React.createClass
   displayName: 'SubjectViewer'

    @setState {playing}
    if playing
      @nextFrame()
      @_playingInterval = setInterval @nextFrame, PLAYING_FRAME_DURATION
    else
      clearInterval @_playingInterval

  nextFrame: ->
    @handleFrameChange (@state.frame + 1) %% @props.subject.locations.length


  getDefaultProps: ->
    subject: null
    playFrameDuration: 667
    playIterations: 3
    onFrameChange: NOOP
    onLoad: NOOP

