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

fix(background-media): avoid potential VPC setup race #12158

Merged
merged 5 commits into from
Dec 12, 2024

Conversation

andy-blum
Copy link
Member

Related Ticket(s)

https://jsw.ibm.com/browse/ADCMS-7249

Description

Modifies component logic to avoid a possible race condition. Previously we assumed the background media component was setting up after the video player container had created its video player child.

Changelog

Changed

  • avoid possible race condition in with background videos

@andy-blum andy-blum requested a review from a team as a code owner December 11, 2024 14:43
@andy-blum andy-blum requested review from m4olivei, bruno-amorim, marcelojcs and Valentin-Sorin-Nicolae and removed request for a team December 11, 2024 14:43
@m4olivei m4olivei changed the base branch from main to release/v2.16.0 December 11, 2024 14:49
Copy link

netlify bot commented Dec 11, 2024

Deploy Preview for ibm-dotcom-web-components-react-wrap ready!

Name Link
🔨 Latest commit 6fbf900
🔍 Latest deploy log https://app.netlify.com/sites/ibm-dotcom-web-components-react-wrap/deploys/6759a52156a001000843486b
😎 Deploy Preview https://deploy-preview-12158--ibm-dotcom-web-components-react-wrap.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Dec 11, 2024

Deploy Preview for ibm-dotcom-web-components ready!

Name Link
🔨 Latest commit 6fbf900
🔍 Latest deploy log https://app.netlify.com/sites/ibm-dotcom-web-components/deploys/6759a5211f6faf00081a1477
😎 Deploy Preview https://deploy-preview-12158--ibm-dotcom-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Dec 11, 2024

Deploy Preview for ibm-dotcom-web-components ready!

Name Link
🔨 Latest commit 6014f37
🔍 Latest deploy log https://app.netlify.com/sites/ibm-dotcom-web-components/deploys/675a2e1b1e6263000734b8ce
😎 Deploy Preview https://deploy-preview-12158--ibm-dotcom-web-components.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@m4olivei m4olivei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nit pick. Looks like we can clean up an unused class property. Otherwise looking good. The changes make logical sense, its cleaner and more direct to go through the video player container rather than the video player.

I wasn't able to reproduce the reported issue in AEM on my local, but using these changes in AEM did not cause any regressions for me, working as expected there.

Feel free to address the nit or not and move forward. Nice work.

Copy link
Contributor

@m4olivei m4olivei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait sorry, too quick.

In Storybook, (and in local AEM), I'm not seeing the button toggle between play / pause visually along with the video playback itself. Its also not remembering auto-play preferences 😕 .

Copy link
Contributor

@m4olivei m4olivei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're still not getting the autoplay preference behavior happening for bg video. Thats still a regression we should fix. I'm seeing that with the updated approach here, the c4d-background-video-prefers-autoplay localstorage key does not get set, compared to the latest rc3 Storybook instance where it does and is respected on a reload of the Story.

@andy-blum andy-blum requested a review from m4olivei December 11, 2024 21:38
Copy link
Contributor

@m4olivei m4olivei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now! Thanks for the quick fixes.

@m4olivei m4olivei added the Ready to merge Label for the pull requests that are ready to merge label Dec 12, 2024
@kodiakhq kodiakhq bot merged commit 55224e3 into release/v2.16.0 Dec 12, 2024
18 checks passed
@kodiakhq kodiakhq bot deleted the fix/background-video branch December 12, 2024 00:50
Copy link
Contributor

Hey there! This issue/pull request was referenced in recently released v2.16.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready to merge Label for the pull requests that are ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants