-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
muted property is not a boolean #141
Comments
@ZKillou interesting it looks like this muted variable is referencing the Howl instance - would you be interested in taking a stab at the fix? I may not be able to get to this for some time due to other priorities but I can certainly review a PR or two and get the changes published for you! |
@E-Kuerschner @ZKillou hey guys, I hit this as well so I checked it out. it looks like this is because the howler.js and you're calling this method to get the value useAudioPlayer/src/audioPlayerState.ts Line 84 in 5268fc0
Some of the other methods return the value or the instance of Howler depending on how many args you pass to the function (like So maybe the muted property should just be removed since that's not something that's publicly exposed from Howler anyways? |
@uncvrd great observation! That always puzzled me about the Howler methods 🤔 I wonder if we remove it if we should bump a major version since it will be a breaking change. If that's the case I might consider a few other API changes and a React upgrade when I have some time over the holidays |
@E-Kuerschner yea it def took me a while staring at the howler code to figure that one out! It probably would be best to make it a major version change...that being said, since the property never worked in the first place, I can't imagine it would break any existing applications anyways 😅 |
@uncvrd I have some time set aside to work on this project in a couple of weeks. It will likely lead to a major version bump and I can cut this method out then |
Describe the bug
When using the property
muted
returned byuseGlobalAudioPlayer
, the value of muted is not a boolean but an object (see below)Condensed version of my component code:
To Reproduce
Steps to reproduce the behavior:
useGlobalAudioPlayer
muted
Expected behavior
muted
should be a boolean.Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: