-
Notifications
You must be signed in to change notification settings - Fork 156
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
Adjust the handling of videoThumbnailUrl property to avoid small images from Kaltura API #10541
Adjust the handling of videoThumbnailUrl property to avoid small images from Kaltura API #10541
Conversation
Deploy preview created for package Built with commit: 5ad2ec119e97eabe0a329339f23fd276932e57b0 |
Deploy preview created for package Built with commit: 5ad2ec119e97eabe0a329339f23fd276932e57b0 |
Deploy preview created for package Built with commit: 5ad2ec119e97eabe0a329339f23fd276932e57b0 |
Deploy preview created for package Built with commit: 5ad2ec119e97eabe0a329339f23fd276932e57b0 |
Deploy preview created for package Built with commit: 1b280a1b9b4e68dd0b7d533e5e992c02f71e5008 |
packages/web-components/src/components/cta/video-cta-composite.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Hum, Github is not seeing my new commits... attempting a Close / Re-open. |
Thanks @ariellalgilmore . Fixed the tests. The Typescript errors actually pointed to further cleanup that I did in the latest commit 🙌 |
looking at the cta video and not getting it to come through for card |
Deploy preview created for package Built with commit: 5ad2ec119e97eabe0a329339f23fd276932e57b0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the updates! LGTM!
Thanks @ariellalgilmore ! |
@ariellalgilmore I'm not sure about some of the jobs:
Hoping that this can make the code freeze for tomorrow 🤞 |
Related Ticket(s)
https://jsw.ibm.com/browse/ADCMS-3370
#10522
Description
Adjust the handling of videoThumbnailUrl property on CTA's that use the
VideoCTAMixin
. This should avoid the bug that we are currently seeing in production wher the CTA componentoffsetWidth
is not yet computed, resulting in a small thumbnail width that is blurry when stretched to fit.There isn't a great way to test the specific condition being observed in production right now. This appears to be a race condition, such that when the Kaltura API is leverged to fetch a thumbnail image, the width determined for the videos container via
offsetWidth
is not available and returns 0. The changes here should more reliably set the thumbnail after theoffsetWidth
is available. This borrows the logic from a similar fix here.Changelog
Changed
dds-video-cta-composite
no longer manages thevideoThumbnailUrl
, that handling is now encapsulated in the VideoCTAMixin, on the component where thevideoThumbnailUrl
is actually used.Testing