Skip to content

* Auto release when LegacyYouTubePlayerView is detached from window#1059

Open
hoangthan wants to merge 1 commit intoPierfrancescoSoffritti:devfrom
hoangthan:auto-release
Open

* Auto release when LegacyYouTubePlayerView is detached from window#1059
hoangthan wants to merge 1 commit intoPierfrancescoSoffritti:devfrom
hoangthan:auto-release

Conversation

@hoangthan
Copy link
Copy Markdown

@hoangthan hoangthan commented Sep 19, 2023

As discussed in #1058
This PR will make the release function is called automatically. So developer who use this lib can put the view in Fragment, View... without care about bind the view to a lifecycleOwner

  • Auto release when LegacyYoutubePlayerView is being detached from window
  • Change listeners in NetworkObservers from List to Set to avoid duplicated listeners

* Change listeners in NetworkObservers from List to Set to avoid duplicated listeners
@PierfrancescoSoffritti
Copy link
Copy Markdown
Owner

Thanks for the PR! I will take a look over the weekend :)

@billdizl
Copy link
Copy Markdown

i think this pr have bug

@hoangthan
Copy link
Copy Markdown
Author

i think this pr have bug

@billdizl Can you point out the issue ?

@billdizl
Copy link
Copy Markdown

yes , i will use ur demo for u show u problem

@billdizl
Copy link
Copy Markdown

billdizl commented Nov 28, 2023

use @PierfrancescoSoffritti lib demo

1714fec9d714f7a715110557f6e6009f.mp4

use ur demo lib to show:

675289d2fdab01d22125c3659cc33f89.mp4

Have you found any issues through comparison????@hoangthan

@billdizl
Copy link
Copy Markdown

@hoangthan hoangthan

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.

4 participants