Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Initializing player in every onResume() call #108

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

PruthiviRaj27
Copy link
Contributor

  • Previsele we release the player when the app goes background at the time we store the last position of the player in a variable called "startPosition". When onResume() is called player initializes again and sets startPosition to the player to get the player's position
  • In this commit, we pause the player when the app goes background and we release the player when the fragment destroy. bu doing this we don't want to store the last position of the player in a variable so we remove the lost position storing part

@PruthiviRaj27 PruthiviRaj27 force-pushed the fix_player_reinitialization branch from d067178 to 6b67758 Compare July 4, 2023 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant