I have three different screens , 1st for Songs list 1 , 2nd for song list 2 and 3rd for Music player ( where exoplayer is loaded after selecting song from either of the songs list screen).
However, Exoplayer stops playing when I press back of Music Player Screen.
Basically my query is how can I keep Exoplayer awake when I press back button of the particular screen.
I have searched a lot in the forum but couldn’t find the solution.
If you are on Screen3 and play a sound and then press the back button, screen3 will close (and ExoPlayer stops) unless the Screen.BackPressed event calls to open Screen1 or Screen2. However, this means that after repeating this procedure several times, more and more additional screens are opened, which ultimately leads to a memory problem and the app crashing.
The playback screen should be Screen1 and - if at all necessary - Screen2 and 3 for the lists. I don’t think it’s even necessary to use more than one screen for this.