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

* Auto release when LegacyYouTubePlayerView is detached from window #1059

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

hoangthan
Copy link

@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
Owner

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

@billdizl
Copy link

i think this pr have bug

@hoangthan
Copy link
Author

i think this pr have bug

@billdizl Can you point out the issue ?

@billdizl
Copy link

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

@billdizl
Copy link

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

@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.

None yet

4 participants