From 7965b82cca54e4ce6bf5e5b2f3de4c1a6098c432 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Sun, 6 Nov 2016 21:47:44 +1100 Subject: Quality WIP --- src/js/plyr.js | 128 ++++++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 96 insertions(+), 32 deletions(-) (limited to 'src/js') diff --git a/src/js/plyr.js b/src/js/plyr.js index 6cf4d5b9..5c0378db 100644 --- a/src/js/plyr.js +++ b/src/js/plyr.js @@ -40,7 +40,7 @@ volumeStep: 1, defaultSpeed: 1.0, currentSpeed: 1.0, - speeds: [ 0.5, 1.0, 1.5, 2.0 ], + speeds: [0.5, 1.0, 1.5, 2.0], duration: null, displayDuration: true, loadSprite: true, @@ -806,7 +806,7 @@ // Restart button if (_inArray(config.controls, 'restart')) { html.push( - '' @@ -816,7 +816,7 @@ // Rewind button if (_inArray(config.controls, 'rewind')) { html.push( - '' @@ -827,11 +827,11 @@ // TODO: This should be a toggle button really? if (_inArray(config.controls, 'play')) { html.push( - '', - '' @@ -841,7 +841,7 @@ // Fast forward button if (_inArray(config.controls, 'fast-forward')) { html.push( - '' @@ -891,7 +891,7 @@ // Toggle mute button if (_inArray(config.controls, 'mute')) { html.push( - '', @@ -934,18 +934,18 @@ '
', '', @@ -953,59 +953,95 @@ '', '', '', '
', '', @@ -1016,7 +1052,7 @@ // Picture in picture button if (_inArray(config.controls, 'pip') && _support.pip) { html.push( - '' @@ -1026,7 +1062,7 @@ // Airplay button if (_inArray(config.controls, 'airplay') && _support.airplay) { html.push( - '' @@ -1036,7 +1072,7 @@ // Toggle fullscreen button if (_inArray(config.controls, 'fullscreen')) { html.push( - '