Skip to content

Commit

Permalink
fix(android): fixed bug where video would not be visible after remoun…
Browse files Browse the repository at this point in the history
…t and change of drm source (#3668)

* refactor(android): remove redundant lifecycle (onDetachedFromWindow)

* fix: remove initPlayer within onAttachedToWindow and remove lifecycle
  • Loading branch information
YangJonghun authored Apr 16, 2024
1 parent a0bcdb7 commit 1af12f9
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,21 +325,6 @@ private void createViews() {
mainHandler = new Handler();
}

@Override
protected void onAttachedToWindow() {
super.onAttachedToWindow();
initializePlayer();
}

@Override
protected void onDetachedFromWindow() {
super.onDetachedFromWindow();
/* We want to be able to continue playing audio when switching tabs.
* Leave this here in case it causes issues.
*/
// stopPlayback();
}

// LifecycleEventListener implementation
@Override
public void onHostResume() {
Expand Down

0 comments on commit 1af12f9

Please sign in to comment.