blackhydrogen/noop-sewi — pull request #135 by TheFuzzy (2014-11-12 17:20:40+00:00)
Title: Stability changes to VideoResourceViewer and MediaControls, and added unit tests for MediaControls

Changes:
- events now in global constants and documented
- MediaControls `update()` now more resilient to invalid data provided (including invalid data types)
- `update()` now rounds data into the valid range if the value provided is the valid type, but beyond the valid range.
e.g. if a `currentTime` of `-1` is given, it will be rounded to `0`.
- MediaControls slider functions now use `parseFloat()` to sanitize the data before calling the appropriate logical functions
- More refactoring done
- Unit tests added for MediaControls