cardo-podcast / cardo

Podcast client
https://cardo-podcast.github.io/
GNU General Public License v3.0
12 stars 2 forks source link

Translation and volume control #5

Closed Br3ndonn closed 1 week ago

Br3ndonn commented 1 week ago

This pull request adds a VolumeControl component to the AudioPlayer.tsx file, allowing users to adjust the volume and toggle between mute and unmute states. The component includes icons for volume and mute states and updates the audio volume and mute state as needed.

  1. VolumeControl Component:

    • Added a button to toggle between mute and unmute.
    • Added a slider to adjust the volume.
    • Displays volume and mute icons based on the current state.
  2. Volume and Mute Logic:

    Captura de tela_19-9-2024_2244_localhost

cardo-podcast commented 1 week ago

That's a nice feature, thanks @Br3ndonn! I moved the control a bit, restructuring the AudioPlayer to make it a bit neater, also volume is saved on settings to make it so when it's opened your app volume is restored. Hope you like it!