aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plyr.js
diff options
context:
space:
mode:
authorChrysa Papadopoulou <papadopoulou.chrysa@gmail.com>2017-02-03 14:52:38 +0200
committerChrysa Papadopoulou <papadopoulou.chrysa@gmail.com>2017-02-03 14:52:38 +0200
commitafcdf17a72ffe8dc8f431765d867b97e0f57cbb1 (patch)
treecb7fff133b530b0a7d8a715180c748977ff71af3 /src/js/plyr.js
parent1bcdbe4c005968954813783af44dc6240e06e0ed (diff)
downloadplyr-afcdf17a72ffe8dc8f431765d867b97e0f57cbb1.tar.lz
plyr-afcdf17a72ffe8dc8f431765d867b97e0f57cbb1.tar.xz
plyr-afcdf17a72ffe8dc8f431765d867b97e0f57cbb1.zip
Removed not needed functions + reverted demo.js to previous
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r--src/js/plyr.js61
1 files changed, 1 insertions, 60 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index 903fa88f..88fcd548 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -46,7 +46,7 @@
volumeMax: 10,
volumeStep: 1,
defaultSpeed: 1.0,
- currentSpeed: 1.0,
+ currentSpeed: 1,
speeds: [0.5, 1.0, 1.5, 2.0],
duration: null,
displayDuration: true,
@@ -1325,35 +1325,6 @@
}
}
- // Setup Loop
- function setupLoop() {
- if (!plyr.supported.full) {
- return;
- }
-
- if ((plyr.type !== 'audio' || config.fullscreen.allowAudio) && config.fullscreen.enabled) {
- // Check for native support
- var nativeSupport = support.fullscreen;
-
- if (nativeSupport || (config.fullscreen.fallback && !inFrame())) {
- log((nativeSupport ? 'Native' : 'Fallback') + ' fullscreen enabled');
-
- // Add styling hook
- toggleClass(plyr.container, config.classes.fullscreen.enabled, true);
- } else {
- log('Fullscreen not supported and fallback disabled');
- }
-
- // Toggle state
- if (plyr.buttons && plyr.buttons.fullscreen) {
- toggleState(plyr.buttons.fullscreen, false);
- }
-
- // Setup focus trap
- focusTrap();
- }
- }
-
// Display active caption if it contains text
function setActiveCue(track) {
// Get the track from the event if needed
@@ -2896,36 +2867,6 @@
}
}
-
- // Update volume UI and storage
- function updateLoop() {
- // Get the current volume
- var volume = plyr.media.muted ? 0 : (plyr.media.volume * config.volumeMax);
-
- // Update the <input type="range"> if present
- if (plyr.supported.full) {
- if (plyr.volume.input) {
- plyr.volume.input.value = volume;
- }
- if (plyr.volume.display) {
- plyr.volume.display.value = volume;
- }
- }
-
- // Update the volume in storage
- updateStorage({
- volume: volume
- });
-
- // Toggle class if muted
- toggleClass(plyr.container, config.classes.muted, (volume === 0));
-
- // Update checkbox for mute state
- if (plyr.supported.full && plyr.buttons.mute) {
- toggleState(plyr.buttons.mute, (volume === 0));
- }
- }
-
// Toggle captions
function toggleCaptions(show) {
// If there's no full support, or there's no caption toggle