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: Fix AgoraVideoView not showing correctly when reusing the same VideoViewController #1169

Merged
merged 2 commits into from Jun 26, 2023

Conversation

littleGnAl
Copy link
Collaborator

fix: Fix AgoraVideoView not showing correctly when resued the same VideoViewController.

When reusing the same VideoViewController, and create/dispose of the AgoraVideoView multiple times, the VideoViewControllerBaseMixin._isDisposeRender flag is not reset correctly in the setupView, which causes the disposeRender not to be called.

It's better to use state management for the AgoraVideoView in the future, at this time, just fix the bug first.

@littleGnAl littleGnAl merged commit 6f79203 into main Jun 26, 2023
29 checks passed
@littleGnAl littleGnAl deleted the littlegnal/fix-mediaplayer-not-rendering branch June 26, 2023 04:07
littleGnAl added a commit that referenced this pull request Jun 30, 2023
…ideoViewController (#1169)

* fix: Fix AgoraVideoView not show correctly when resued the same VideoViewController
littleGnAl added a commit that referenced this pull request Jun 30, 2023
* fix: Fix VideoViewController state not correct when the AgoraVideoView is reused

* fix: Fix AgoraVideoView not showing correctly when reusing the same VideoViewController (#1169)

* fix: Fix AgoraVideoView not show correctly when resued the same VideoViewController

* ++
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

1 participant