-
Notifications
You must be signed in to change notification settings - Fork 35
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(FEC-10122): clear drop frame watcher and DRM selection #455
Conversation
destroy dropped frames watcher on reset to avoid leak memory.
@@ -242,6 +243,10 @@ export default class Html5 extends FakeEventTarget implements IEngine { | |||
this._mediaSourceAdapter.destroy(); | |||
this._mediaSourceAdapter = null; | |||
} | |||
if (this._droppedFramesWatcher) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason why you moved it down here? as it is dependent on _mediaSourceAdapter it could trow error if we destroy it after we destroy adapter
Same for reset above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't matter but I changed it to keep the flow of code meaningful
Description of the Changes
destroy dropped frames watcher on reset to avoid a memory leak.
clear the DRM selection for the use case of loading another media without DRM keeps selection.
CheckLists