e-picsa / picsa-apps

Monorepo for building tools to support E-PICSA Apps
https://picsa.app
GNU General Public License v3.0
5 stars 1 forks source link

feat(farmer-app): audio support #286

Open chrismclarke opened 4 weeks ago

chrismclarke commented 4 weeks ago

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