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

feat(FEC-9224): refactoring networkConnectionOverhead to use PerformanceObserver #42

Merged
merged 5 commits into from
Jul 19, 2019

Conversation

RoyBregman
Copy link
Contributor

Refactored the networkConnectionOverhead to use PerformanceObserver due to buffer limitations of performance.getEntriesByType

@RoyBregman RoyBregman requested review from OrenMe and yairans July 18, 2019 13:43
src/kava.js Outdated
@@ -117,6 +135,22 @@ class Kava extends BasePlugin {
playTimeSum: 0.0,
sessionStartTime: null
});
this._performanceObserver.disconnect();
Copy link
Contributor

Choose a reason for hiding this comment

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

to avoid of the duplicate code maybe put common reset and destroy actions in _reset method and call it from both destroy and reset.

_reset(): void {
    this._timer.destroy();
    this._rateHandler.destroy();
    this._performanceObserver.disconnect();
    this._performanceEntries = [];
    this._pendingFragLoadedEvents = [];
}

@OrenMe OrenMe merged commit 8782126 into master Jul 19, 2019
@OrenMe OrenMe deleted the FEC-9224-performance-entries-refactor branch July 19, 2019 06:00
DanilMolchanovKaltura pushed a commit that referenced this pull request Nov 28, 2024
… update (#42)

Adding "aria-hidden" to icon's elements

Resolves ADA-490
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.

2 participants