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

Integrating Howler.js #25

Closed
gracebw7 opened this issue Jan 28, 2025 · 0 comments · Fixed by #41
Closed

Integrating Howler.js #25

gracebw7 opened this issue Jan 28, 2025 · 0 comments · Fixed by #41
Assignees
Labels

Comments

@gracebw7
Copy link
Collaborator

gracebw7 commented Jan 28, 2025

Description
We will be using the library Howler.js for audio playback. Please use the Howler.js documentation to learn about how to create a "Howl" instance and using that to play and pause the audio.

Acceptance Criteria
Create a simple AudioPlayer component in ../src/components. The component should accept props for the audioURL and name. The audioURL will be accessed through getting the audioID and name from the POI, and from the audioID there is a URL field (these endpoints should already be implemented). On the component create buttons for play and pause and display the name of the audio above the controls. Don't worry about styling, a functional play/pause button is great. If you have extra time you can add a progress bar feature too.

Resources
Howler Docs
More Info

Steps:
[ ] Howler should be installed but if not run "npm i howler"
[ ] use state variables for audio playback (within component)
[ ] test with POI from database (ensure selected POI has a audioID with audioURL attached)

Additional Information
Add any other context or screenshots about the feature request here.

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

Successfully merging a pull request may close this issue.

5 participants