adapted code that handles Media Overlays playback during viewport resize, following the change from debounce to throttle.