Wikia/app — pull request #1284 by lizlux (2013-08-07 20:31:21+00:00)
Title: Vid 676 lvs reload player

https://wikia-inc.atlassian.net/browse/VID-676

This makes it so if a video is playing and you click any button/link that opens a modal, the video will stop playing and reload itself (it would be nice if we could just hit pause on the video but not all players give us that kind of control).

The solution is to keep an index of all players in the order they are initiated, and splice the array with new video instances when they are switched out in the UI. This makes it so we aren't "reloading" videos that no longer exist.

@kenkouot, if you have time to take a look it would be much appreciated. Thanks!