mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-14 15:56:38 +03:00
d1498f4968
Because configure() is called multiple times, we used to add some of the event handlers multiple times. For fullscreen, this caused us to try to toggle fullscreen multiple times. This changes to only add the main event listeners one time and the DOM-specific ones have been moved to be added in the configure() call. This also moves the fullscreen toggle to the try so we can propagate any errors from it. Lastly, this adds an "error" listener to the tests to fail the test. Closes #2054 Issue #2089 Change-Id: Ic78417ce52cae1c53133b5a4217004bb91ebcc4f