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(FEC-9523): add attach detach implemention #21

Merged
merged 15 commits into from
Dec 30, 2019
Merged

fix(FEC-9523): add attach detach implemention #21

merged 15 commits into from
Dec 30, 2019

Conversation

Yuvalke
Copy link
Contributor

@Yuvalke Yuvalke commented Dec 5, 2019

Description of the Changes

for reloading media add attach detach implemention.
Simulate event as exist in HTML5 on destroy.

CheckLists

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • test are passing in local environment
  • Travis tests are passing (or test results are not worse than on master branch :))
  • Docs have been updated

add attach detach as exist in HTML5 to remove the source and reload it after
@Yuvalke Yuvalke self-assigned this Dec 5, 2019
src/flash.js Outdated Show resolved Hide resolved
src/flash.js Outdated Show resolved Hide resolved
src/flash.js Outdated Show resolved Hide resolved
src/flash.js Show resolved Hide resolved
src/flashhls-adapter.js Show resolved Hide resolved
*/
attachMediaSource(): void {
this.attach();
this._startTimeAttach = this._lastTimeDetach;
Copy link
Contributor

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)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

OrenMe
OrenMe previously approved these changes Dec 26, 2019
yairans
yairans previously approved these changes Dec 29, 2019
@@ -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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
delete this._api;
this._api = null;

Just change the type to ?FlashAPI

@Yuvalke Yuvalke merged commit ba59a7e into master Dec 30, 2019
@Yuvalke Yuvalke deleted the FEC-9523 branch December 30, 2019 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants