I am developing a Google extension to play a set of songs. The extension has a pop-up to do volume-control. I use jPlayer to play songs.
I am facing two problems:
- If the pop-up is closed, the music stops (as the code for the player is in the pop-up. How can I keep playing the music in background?
- How can I remember variables when the pop up is closed? e.g Lets say I have a variable
status
which indicates the current status of the player (playing/stopped). The problem is, since the variable is destroyed when the pop-up is closed, how can I remember them between pop-ups