Update contrib-ads implementation of the loading spinner component style to accommodate changes in videojs v8.11.x that cause a misalignment of the spinner segment animation before ad playback:
The contrib-ads implementation of an ad-specific spinner requires inherited rules from videojs and also a number of lines that were identical to videojs but became out of sync with recent updates. The inconsistency caused a minor visual defect, specifically because contrib-ads used display: block to make the spinner appear.
Fix parameters:
Update .vjs-ad-loading .vjs-loading-spinner style to include display:flex and expected justify/alignment rules to center the spinner segment pseudo-elements, to match changes from videojs.
Remove outdated css animation fallbacks to match videojs
Add animation: vjs-spinner-show rule to match videojs. This also includes built-in visibility
Update contrib-ads implementation of the loading spinner component style to accommodate changes in videojs v8.11.x that cause a misalignment of the spinner segment animation before ad playback:
The contrib-ads implementation of an ad-specific spinner requires inherited rules from videojs and also a number of lines that were identical to videojs but became out of sync with recent updates. The inconsistency caused a minor visual defect, specifically because contrib-ads used
display: block
to make the spinner appear.Fix parameters:
.vjs-ad-loading .vjs-loading-spinner
style to includedisplay:flex
and expected justify/alignment rules to center the spinner segment pseudo-elements, to match changes from videojs.animation: vjs-spinner-show
rule to match videojs. This also includes built-in visibilityborder-top-color: rgb(255,255,255)
Notes:
videojs('examplePlayer').addClass('vjs-ad-loading')
in the console to make the spinner appear and animate