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: Add volume control #9

Merged
merged 3 commits into from
Feb 4, 2024
Merged

feat: Add volume control #9

merged 3 commits into from
Feb 4, 2024

Conversation

ZaikoXander
Copy link
Owner

No description provided.

- In usePlayer hook:
  - Add states to control volume:
    - playerVolume
    - playerMuted
  - Add changePlayerVolume function to handle volume change
  - Add to the return object:
    - playerVolume
    - changePlayerVolume
    - playerMuted
    - setPlayerMuted

- In App component:
  - Create a volume slider
  - Create a mute/unmute button
  - Additionally make formatting changes
Copy link

vercel bot commented Feb 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hora-de-silencio-interrompido ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 4, 2024 2:57am

- Volume change while playing
- Starting with pre-set volume
- Starting already muted by changing volume to zero
- Starting already muted by mute button
- Muting and unmuting by changing volume while playing
- Muting and unmuting using mute button while playing
- Changing volume while it's muted and playing
- Muting by changing volume to zero and unmuting while playing
- Separate the volume control into a new component
@ZaikoXander ZaikoXander changed the base branch from main to dev February 4, 2024 03:26
@ZaikoXander ZaikoXander merged commit 32b31a6 into dev Feb 4, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant