                   <button type="button" className="secret-button" onClick={@setPlaying.bind this, true}>
                     <i className="fa fa-play fa-fw"></i>
                   </button>}
-              </span>
-            </span>
+              </span>}
+          </span>
       when 'video'
         <span className="subject-video-controls">
           <span className="subject-frame-play-controls">

  setInFlipbookMode: (inFlipbookMode) ->
    @setState {inFlipbookMode}

  setPlaying: (playing) ->
    @setState {playing}
    if playing
      @nextFrame()
      @_playingInterval = setInterval @nextFrame, @props.playFrameDuration

    playbackRate: 1
    frameDimensions: {}
    inFlipbookMode: @props.allowFlipbook
    videoStates: []

  componentDidMount: ->
    for frame of @props.subject.locations
      @refs['videoScrubber'+frame]?.value = 0

  componentDidUpdate: ->
    for frame of @props.subject.locations
      @refs['videoPlayer'+frame].playbackRate = @state.videoStates[frame]?.playbackRate || 1

  willReceiveProps: (nextProps) ->
    # The default state for subjects is flipbook if allowed
