Closed dpaulino closed 1 year ago
I think this workaround should work. I am thinking that we should unsubscribe the mediaOpened and mediaFailed events in the event handlers and register them in
AssignSource
instead of doing the registration in the ctor.
Moving it to assignSource might get tricky since it can be called multiple times, so we'd have to add extra logic to ensure it's only registered once. I think the current approach in ctor should be fine. But let's do this: I'll merge this pr first and check if crashes go down. If not, let's revisit the event handlers in a new pr.
I think this workaround should work. I am thinking that we should unsubscribe the mediaOpened and mediaFailed events in the event handlers and register them in
AssignSource
instead of doing the registration in the ctor.