mozilla/popcorn-js — pull request #164 by cstigler (2012-07-25 19:05:30+00:00)
Title: [#1196] Changed YT seek method to fix issue with looping seeks

Fix for Lighthouse issue [#1196](https://webmademovies.lighthouseapp.com/projects/63272/tickets/1196-youtube-seek-can-breakloop)

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.