mozilla/popcorn-js — pull request #168 by cstigler (2012-07-26 21:27:01+00:00)
Title: [#1196] Changed YouTube seek method to break less

Fix for Lighthouse issue #1196

(I broke the other pull request =/)

Refactored YT seek to stop based on the first of two criteria: two onStateChanged events with the same state (which only happens when a seek completes) or the YT player returning a time close enough to the target, with an increasing epsilon accuracy. Also fires seeking event.