Skip to content

[BUG]: Ambient sound volume resets on page navigation #479

Closed

Description

Description

Bug Description

When users adjust the ambient sound volume (Rain/Fireplace) and navigate to another page, the volume preference resets to default.

Benefits

  • Better user experience
  • Respects user preferences
  • No annoying volume surprises

Steps to Reproduce

  1. Go to homepage (bibliodrift-dm.netlify.app)
  2. Play "Rainy Evening" or "Cozy Fireplace" ambient sound
  3. Adjust volume slider to 50%
  4. Navigate to "My Library" or "Chat" page
  5. Observe: Volume resets to default

Expected Behavior

Volume preference should persist across pages and sessions. User shouldn't have to re-adjust volume every time they navigate.

Actual Behavior

Volume resets to default (100% or muted) every time user navigates to a different page. User must re-adjust constantly.

Screenshots / Logs

N/A - behavior is observable on any device

Proposed Solution

Use localStorage to save volume preference and restore it on page load.

I'd love to fix this! Can you assign it to me? @devanshi14malhotra

Activity

  1. jaygaikar-09 commented on May 12, 2026

    @jaygaikar-09

    Hi @Shahazadi-Shaguftha-Syed

    I explored the issue and understood the expected behavior. I’d like to work on implementing volume persistence using localStorage so the ambient sound settings remain consistent across pages and sessions.

    Could you please assign this issue to me under NSoC 2026?

  2. devanshi14malhotra commented on May 13, 2026

    @devanshi14malhotra
    Owner

    @jaygaikar-09 you are welcome to check out other issues...
    as this one has been assigned to the issue author, as they had asked for assignment...
    looking forward to ur contributions!

  3. added
    level:intermediateGSSoC'26 intermediate level PR/issue
    GSSoC'26For all issues/PRs related to GSSoC'2026 open source event
    on May 15, 2026
  4. added 2 commits that reference this issue on May 17, 2026
    127986b
    c4d3e75
  5. Shahazadi-Shaguftha-Syed commented on May 17, 2026

    @Shahazadi-Shaguftha-Syed
    ContributorAuthor

    Hi @devanshi14malhotra!

    I've implemented the volume persistence fix. The changes are included in PR #629 along with the empty state improvements.

    Both features enhance the library experience, so I combined them in one PR. Let me know if you'd prefer separate PRs!

    The volume fix includes:

    • localStorage persistence for volume level
    • Saves rain/fire playback state
    • Restores preferences on page navigation

    Ready for review!

  6. added 2 commits that reference this issue on May 22, 2026
    ec7fd3e
    c148ecf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

GSSoC'26For all issues/PRs related to GSSoC'2026 open source eventlevel:intermediateGSSoC'26 intermediate level PR/issue

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions