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

feat(farmer-app): audio support #286

Open
chrismclarke opened this issue Jun 5, 2024 · 0 comments · May be fixed by #290
Open

feat(farmer-app): audio support #286

chrismclarke opened this issue Jun 5, 2024 · 0 comments · May be fixed by #290
Assignees
Labels
App: Farmer Updates related to Farmer app

Comments

@chrismclarke
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
The content team is planning to provide audio prompts to help make certain pages within the app more accessible. These should be made available through the app.

Describe the solution you'd like
Create a shared audio-playback component and service to handle playing of audio snippets. The component should show a UI button as seen in Figma Mockups, which when pressed plays the audio.

It might also be nice to change the UI if audio is playing, to allow the user to pause the audio. Additionally a shared service will likely be required to track globally any audio playing, and be able to pause existing audio either when the user starts new audio playback or navigates off screen (can likely use component OnDestroy to stop playback but will need global service to stop any other audio triggered elsewhere)

Additional context

  • Likely will need to add a placeholder audio asset for testing purposes. In the future these will come from the database
  • It should be possible to play audio programatically (without rendering an <audio> element tag), see examples in https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement#basic_usage
  • In the future it would be good to integrate audio with the existing tour system, however likely that should be saved for follow-up PR
@chrismclarke chrismclarke changed the title feat(farmer-app): audio tours feat(farmer-app): audio support Jun 5, 2024
@FaithDaka FaithDaka self-assigned this Jun 5, 2024
@FaithDaka FaithDaka added the App: Farmer Updates related to Farmer app label Jun 5, 2024
@chrismclarke chrismclarke moved this to Next Priority in PICSA Apps Development Jun 8, 2024
@FaithDaka FaithDaka linked a pull request Jun 26, 2024 that will close this issue
@chrismclarke chrismclarke moved this from Next Priority to In Progress in PICSA Apps Development Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
App: Farmer Updates related to Farmer app
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

2 participants