beyond-z/beyondz-platform — pull request #80 by adamdruppe (2014-06-13 21:17:32+00:00)
Title: Video quiz fix for task progression

When we hit next, the page is turbolink/ajax loaded. I worked around the video player itself showing up previously by detecting this state and calling the function directly instead of depending on the youtube event.

Turns out this solution was problematic because the play event was unreliable on this load too. My final solution for now at least is a simple one: automatically refresh the page when required. Adds like a quarter second of load time but works reliably in every test I've done so far, so hopefully it will work on staging too. I think that's an acceptable tradeoff especially since these bugs are turning into massive time sinks and I want to move on!