Skip to content
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

Audio not changing when recording is different but link is same #130

Open
rohilpinto opened this issue Aug 31, 2023 · 4 comments
Open

Audio not changing when recording is different but link is same #130

rohilpinto opened this issue Aug 31, 2023 · 4 comments
Assignees

Comments

@rohilpinto
Copy link

Describe the bug
I'm using a link from the server to play the audio. When a user records & uploads their audio, I get a new audio link but the problem is useAudioPlayer hook is not playing the new audio. I think it is caching the audio because the link is the same. I have checked the file by downloading it and listening to it they are different. Is there any way to disable this caching behavior?

Expected behavior
The hook should play the latest audio even if the link is same

Environment (please complete the following information):

  • MS Edge:
  • 1.2.6:
  • 18.2.0:
  • v18.0.0:
@E-Kuerschner
Copy link
Owner

@rohilpinto that is an interesting use case. The caching behavior is implemented by the underlying lib howler. Because of this our options may be limited. I would suggest taking at look at their issue board and seeing if anyone has reported something similar there. In the meantime I will do the same and see if there is something we can build into this package to help

@rohilpinto
Copy link
Author

rohilpinto commented Sep 18, 2023

@rohilpinto that is an interesting use case. The caching behavior is implemented by the underlying lib howler. Because of this our options may be limited. I would suggest taking at look at their issue board and seeing if anyone has reported something similar there. In the meantime I will do the same and see if there is something we can build into this package to help

Got it. I will take a look at their issue board & submit this issue on their repo as well. Thanks for the reply.

@E-Kuerschner
Copy link
Owner

@rohilpinto, did you ever find a workaround for this issue?

@rohilpinto
Copy link
Author

@rohilpinto, did you ever find a workaround for this issue?

Not yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants