question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Recommended way for releasing and recreating the player?

See original GitHub issue
  • [X ] I have verified there are no duplicate active or recent bugs, questions, or requests
Include the following:
  • ExoMedia version: 4.0.0-preview
  • Device OS version: 7.0
  • Devide Manufacturer: Google
  • Device Name: Emulator

What’s the recommended way of releasing the player when the app is going in background and recreating it when it comes into foreground?

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:1
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

5reactions
ominfowavecommented, Sep 13, 2017

Is there any good solutions for preventing releasing when play in RecyclerView? I just found that the VideoView is released after item being scrolled up or down and unvisible for user (the item view was detached from window). Must i call setReleaseOnDetachFromWindow() for this problem? To be honest, i don’t want to cache holders or VideoViews by myself when they are not used or visible. But if i don’t do that, i can’t find all of them to reease when exiting activity.

Same problem, @brianwernick any suggestion to handle this in RecyclerView ?

2reactions
saketcommented, Apr 3, 2017

Because Android sends a lowMemory callback only when it’s really low in memory. Apps, as good citizens, should not consume memory when they are not being used. Exoplayer also suggests doing the same in its documentation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Christina Aguilera - Beautiful (2022 Version) - YouTube
The 2022 music video version of “Beautiful” by Christina AguileraListen to Christina Aguilera: ...
Read more >
Unity: CHARACTER CONTROLLER vs RIGIDBODY
A tutorial on the two approaches for coding movement in Unity: The Character Controller and the Rigidbody components, and their respective advantages.
Read more >
Recreating Celeste's movement and feel using Unity! - Reddit
In a platformer like Celeste, the player behavior code needs to be very tightly ordered and tuned, and this style of code was...
Read more >
Recreating the Game: Using Player Tracking Data to Analyze ...
In several sports leagues, player-tracking data are available, ... such as determining whether it is best to punt, kick a field goal, ...
Read more >
The activity lifecycle | Android Developers
In the onStop() method, the app should release or adjust resources that are not needed while the app is not visible to the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found