diff options
Diffstat (limited to 'src/js/html5.js')
-rw-r--r-- | src/js/html5.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/js/html5.js b/src/js/html5.js index 031d3e27..6aa96f4c 100644 --- a/src/js/html5.js +++ b/src/js/html5.js @@ -3,7 +3,8 @@ // ========================================================================== import support from './support'; -import utils from './utils'; +import { removeElement } from './utils/elements'; +import { triggerEvent } from './utils/events'; const html5 = { getSources() { @@ -20,7 +21,8 @@ const html5 = { // Get quality levels getQualityOptions() { // Get sizes from <source> elements - return html5.getSources.call(this) + return html5.getSources + .call(this) .map(source => Number(source.getAttribute('size'))) .filter(Boolean); }, @@ -75,7 +77,7 @@ const html5 = { } // Trigger change event - utils.dispatchEvent.call(player, player.media, 'qualitychange', false, { + triggerEvent.call(player, player.media, 'qualitychange', false, { quality: input, }); }, @@ -90,7 +92,7 @@ const html5 = { } // Remove child sources - utils.removeElement(html5.getSources.call(this)); + removeElement(html5.getSources.call(this)); // Set blank video src attribute // This is to prevent a MEDIA_ERR_SRC_NOT_SUPPORTED error |