Skip to content

use resizeObserver when available for resizing captions

Created by: jeffcunat

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.

Merge request reports