Plyr: Volume control disappears shortly after initializing

Created on 12 Oct 2018  路  10Comments  路  Source: sampotts/plyr

with the default setup, even the official codepen demo, the volume control disappears ( the progress bar extending over the freed space ) shortly after the player is fully initialized. You can see it, then it just disappears. No matter what other controls config and no matter if autoplay or not. Weirdly it is fine in Firefox

Problem occurs under
Win 10 pro 64bit

Opera 56.0.3051.36
Chrome 69.0.3497.100 64bit
Chrome 71.0.3577.0 canary 32bit

works in
Firefox 62.0.3 64bit
Ms Edge 42.17134.1.0

Bug In Development

Most helpful comment

This will be fixed in the next release (in a day or two).

All 10 comments

version 3.2.4. Anyone else experiencing the same issue?

Strangely, clicking into the progress bar makes the volume bar re-appear.

Another fix is to invoke plyrInstance.currentTime = 0; before calling play()

Hey, the CodePen demo was using an outdated version. I've updated it to use latest (v3.4.5) and it now functions correctly: https://codepen.io/sampotts/pen/jARJYp

@sampotts I am using ver 3.5.2 and still appear issue. Please my gif below.

plyr

Add information. I am using Google Chrome version 73.0.3683.86. However it still run correct with Edge.

The logic here is that we check for audio tracks before showing the volume control. It was raised as a bug previously that the volume control showed up for videos without audio tracks so I added some logic in. Essentially when the canplay or loadeddata event occurs, I toggle the visibility of the volume input based on a hasAudio getter. I'll take another look. It could well be the video is cached and these two events do not fire as a result. That seems the most logical explanation. Media events can be flaky at best.

Hi, any news on this issue?

For anyone else wondering, here is a workaround:
player.on('loadeddata', () => { player.currentTime = player.currentTime; });

This will be fixed in the next release (in a day or two).

Hey @sampotts, I'm still experiencing this issue using 3.5.6. Did you release that change?

https://gitlab.com/minds/video-player/issues/1

This should be fixed in v3.5.7 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Skwai picture Skwai  路  4Comments

michaelmano picture michaelmano  路  3Comments

jwjcmw picture jwjcmw  路  4Comments

osamay picture osamay  路  4Comments

ahmadshc picture ahmadshc  路  3Comments