player: multiple controllers causing issues

Issue #80 resolved
Trek Hopton created an issue

At the moment, whenever a reload occurs without refreshing the page, eg. a load from file or URL input element, there's a chance that the video does not play. This is because a load event creates a new controller every time and these controllers are using the same img element to display their content. Controllers shouldn’t be playing content at the same time but since they are asynchronous, sometimes the start of one and the end of another over lap. This can be fixed by only using one controller for all reloads, if a load occurs it uses the controller that was previously in use. This ensures events happen in order and is how the controller class was originally intended to be used.

Comments (1)

  1. Log in to comment