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

use resizeObserver when available for resizing captions #3437

Conversation

jeffcunat
Copy link
Contributor

This PR will avoid polling every 500ms to check if video element size has changed to redraw HTML captions
It will be used on browsers that supports ResizeObserver (which is the case for most of them today)
See support

ResizeObserver can observe changes for the size of an element and call a callback only when needed.

@dsilhavy dsilhavy added this to the 3.2.0 milestone Oct 21, 2020
@dsilhavy dsilhavy merged commit 4961649 into Dash-Industry-Forum:development Oct 21, 2020
@bbert bbert deleted the captions-resize-observer branch October 28, 2020 15:43
bbert pushed a commit to Orange-OpenSource/dash.js that referenced this pull request Nov 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants