Skip to content

Remove the listener from the video player controller in case the cont…#94

Open
pdurasie-ecovery wants to merge 1 commit intoJoran-Dob:mainfrom
pdurasie-ecovery:bugfix/remove-video-listener-on-close
Open

Remove the listener from the video player controller in case the cont…#94
pdurasie-ecovery wants to merge 1 commit intoJoran-Dob:mainfrom
pdurasie-ecovery:bugfix/remove-video-listener-on-close

Conversation

@pdurasie-ecovery
Copy link

@pdurasie-ecovery pdurasie-ecovery commented Dec 8, 2025

Remove the listener from the video player controller in case the controller's life cycle is longer than the bloc's.

Description

Fixes issue #92 . The problem arises when the video player controller continues to be used but the widget containing a subtitle bloc is disposed. The bloc will be closed due to the widget's disposal, but the video player controller will still update and call the listener, which leads to "cannot emit state after calling close".

Type of Change

  • [x ] 🛠️ Bug fix (non-breaking change which fixes an issue)

…roller's life cycle is longer than the bloc's
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.

1 participant