       @retake.show()
       @save.show()
       @takePicture()
-      @button.setTitle options.snapTitle
+      @button.setTitle snapTitle
 
   resetView: ->
     @button.show()


    if navigator.getUserMedia
      navigator.getUserMedia video: yes, (stream)=>
        @setVideoStream (window.URL and window.URL.createObjectURL stream) or stream
      , _onError
    else _onError notSupported: yes

    @picture.setDomAttributes size
    @setSize size

  unsetVideoStream: ->
    video = @video.getElement()
    video.pause()
    KDWebcamView.setVideoStreamVendor video, ""
    @localMediaStream?.stop()

  setVideoStream: (stream)->
    video = @video.getElement()
    KDWebcamView.setVideoStreamVendor video, stream
