-
Notifications
You must be signed in to change notification settings - Fork 4
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-9523): add attach detach implemention #21
Conversation
add attach detach as exist in HTML5 to remove the source and reload it after
*/ | ||
attachMediaSource(): void { | ||
this.attach(); | ||
this._startTimeAttach = this._lastTimeDetach; |
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.
clean this._startTimeAttach
on destroy (change media)
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.
done
src/flashhls-adapter.js
Outdated
@@ -92,6 +106,17 @@ class FlashHLSAdapter extends FakeEventTarget { | |||
if (this._el && this._el.parentNode) { | |||
this._el.innerHTML = ''; | |||
} | |||
this._startTimeAttach = NaN; | |||
this._lastTimeDetach = NaN; | |||
delete this._api; |
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.
delete this._api; | |
this._api = null; |
Just change the type to ?FlashAPI
Description of the Changes
for reloading media add attach detach implemention.
Simulate event as exist in HTML5 on destroy.
CheckLists