jsfeat icon indicating copy to clipboard operation
jsfeat copied to clipboard

video.videoWidth is still not available in FF when is used - 2 demos are broken

Open nlac opened this issue 12 years ago • 3 comments

hi, in the two face detection demos (haar and bbf) the video.videoWidth and video.videoHeight are still 0 when demo_app() tries to use those values.

Working solution:

  1. remove the call of demo_app call from the setTimeout
  2. in the tick(), extend the main condition to this: if (video.readyState === video.HAVE_ENOUGH_DATA && video.videoWidth) and call the demo_app() once immediately after that condition

Your lib is awesome btw!

nlac avatar Sep 08 '13 17:09 nlac

hmm thats strange since i tested it in FF on my OSX machine and it works fine for me.

inspirit avatar Sep 13 '13 07:09 inspirit

I see, i use win7 pro. In chrome it's ok, but FF produces the issue.

nlac avatar Sep 13 '13 07:09 nlac

yeah might be the issue. will add the initiation inside tick method then.

thanx for the head up

inspirit avatar Sep 13 '13 07:09 inspirit