You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: