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

feature: Persist user volume preference in localStorage #1685

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

omkarsp45
Copy link

@omkarsp45 omkarsp45 commented Dec 26, 2024

Description:

This pull request adds a feature to save and load the user's volume preference in the video player using localStorage.


Changes Made:

  • Retrieve saved volume level from localStorage during initialization.
  • Save the volume level in localStorage whenever it changes.
  • Apply a default volume level if no preference exists.

image


Checklist before requesting a review:

  • I have performed a self-review of my code.
  • There is no duplicate pull request for this issue.

Feedback:

Feel free to provide any suggestions or improvements. Your feedback is highly appreciated!
This is my first PR :)

@omkarsp45 omkarsp45 changed the title feature: persist user volume preference in localStorage feature: Persist user volume preference in localStorage Dec 26, 2024
@omkarsp45
Copy link
Author

@devsargam @hkirat

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.

feature: Saving the volume settings
1 participant