Next.js: How to make music player continue playing when I move between pages?

Created on 20 Aug 2019  路  3Comments  路  Source: vercel/next.js

I'm using Next.js framework and react-player component to play some music on my site. Everything is good until I navigate to the second page. Then the music player stops and when I go back to the first page, the music starts playing again.

While I want the music to not be interrupted by going to different pages and be an upstream component that I can change the music files from different pages.

What way do you suggest to this case?

All 3 comments

Hey @alizamani, closing this issue, first of all, please don't create a duplicate on Spectrum and Github. Second of all please follow our issue temple.

How disappointing. I need help and you teach the rules without any help.

Hey @alizamani the issue template clearly says that questions should be posted on https://spectrum.chat/next-js, the reason for this is that there are many community members on Spectrum willing to help out, more so than here on GitHub issues.

Was this page helpful?
0 / 5 - 0 ratings