Bug fix for no buffer

This commit is contained in:
Sam Potts 2016-05-19 11:56:24 +10:00
parent 0b7dc51bd1
commit ac0061b83e
6 changed files with 12 additions and 7 deletions

2
dist/plyr.css vendored

File diff suppressed because one or more lines are too long

2
dist/plyr.js vendored

File diff suppressed because one or more lines are too long

View File

@ -654,7 +654,7 @@ Some more details on the object parameters
## Events
You can listen for events on the element you setup Plyr on. Some events only apply to HTML5 audio and video.
You can listen for events on the target element you setup Plyr on (see example under the table). Some events only apply to HTML5 audio and video.
<table class="table" width="100%">
<thead>

View File

@ -2245,10 +2245,15 @@
if (typeof value === 'undefined') {
value = 0;
}
// Default to buffer
// Default to buffer or bail
if (typeof progress === 'undefined') {
if (plyr.progress && plyr.progress.buffer) {
progress = plyr.progress.buffer;
}
else {
return;
}
}
// One progress element passed
if (progress instanceof HTMLElement) {

View File

@ -375,7 +375,7 @@
border-radius: 100%;
box-shadow: 0 1px 1px fade(@plyr-video-controls-bg, 15%);
color: @plyr-video-control-color;
transition: opacity .3s ease, visibility .3s ease;
transition: all .3s ease;
svg {
position: relative;

View File

@ -374,7 +374,7 @@
border-radius: 100%;
box-shadow: 0 1px 1px transparentize($plyr-video-controls-bg, .85);
color: $plyr-video-control-color;
transition: opacity .3s ease, visibility .3s ease;
transition: all .3s ease;
svg {
position: relative;