oppia / oppia-android

A free, online & offline learning platform to make quality education accessible for all.
https://www.oppia.org
Apache License 2.0
314 stars 517 forks source link

Issue with audio state in low end phones #1292

Open aggarwalpulkit596 opened 4 years ago

aggarwalpulkit596 commented 4 years ago

Describe the bug The audio state is not maintained in the exploration player.

To Reproduce Steps to reproduce the behavior:

  1. Turn on Don't keep activities in developer mode
  2. Open oppia app and select any story
  3. Select any exploration
  4. Play audio for the exploration and minimize the app while keeping the audio seek bar somewhere in the middle
  5. Then open the app again the state of the audio player will not be maintained

Expected behavior Audio progress should be maintained when app is opened again

Screenshots If applicable, add screenshots or videos to help explain your problem.

Device

Additional context This is can be easily managed using saved instance state

4shutosh commented 3 years ago

I would like to work on this issue

4shutosh commented 3 years ago

As per my current understanding, this needs work under AudioFragment Fragment in turn which is under ExplorationFragment inside the ExplorationActivity.

This will require saving and restoring the state of ExplorationFragment and further AudioFragment saving and restoring the PlayStatus / UiAudioPlayStatus of the audio.

@aggarwalpulkit596 Please correct me if I'm wrong any guidance/suggestion is highly appreciated.