mozilla/popcorn-js — pull request #134 by cstigler (2012-07-17 01:13:21+00:00)
Title: [#1194] Fix for YouTube duration detection, with refactoring of YT duration/ready events

Fix for Lighthouse issue [#1194](https://webmademovies.lighthouseapp.com/projects/63272/tickets/1194-youtube-duration-issues).

Delays duration detection until the video starts playing, then polls with a repeating decay to match with YouTube's documented "shortly after play" duration availability. Also refactors the duration/ready events to work with this.