johndyer/mediaelement — pull request #358 by tantalic (2012-01-12 00:53:24+00:00)
Title: Adjust timing of caption position shifts to match when player controls are hidden/shown

This change adjusts caption position change so that changes occur at same time controls are shown and hidden. Previously captions would move before the player controls were actually hidden. The player now fires custom events "controlsshown" and "controlshidden" when being shown/hidden. The tracks plugin registers event handlers for these events for changing the position of captions.