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

feat(video-player): enable autoplay & load as muted #12070

Merged
merged 4 commits into from
Oct 15, 2024

Conversation

andy-blum
Copy link
Member

Related Ticket(s)

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

Description

Fixes the auto-play attribute to play video on load and adds a muted attribute to load the video with sound fully muted.

Changelog

New

  • Adds muted attribute to video-player-container
  • Adds storybook examples for auto-play and muted video player usage

Changed

  • Fixes auto-play attribute on video-player-container

@andy-blum andy-blum requested a review from a team as a code owner October 9, 2024 18:20
@ibmdotcom-bot
Copy link
Contributor

ibmdotcom-bot commented Oct 9, 2024

@ibmdotcom-bot
Copy link
Contributor

@ibmdotcom-bot
Copy link
Contributor

@andy-blum andy-blum requested a review from m4olivei October 10, 2024 17:32
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.

Need to look into potential breaking change for CAEM.

@m4olivei m4olivei added the Ready to merge Label for the pull requests that are ready to merge label Oct 15, 2024
@kodiakhq kodiakhq bot merged commit 3d98787 into v1 Oct 15, 2024
19 of 22 checks passed
@kodiakhq kodiakhq bot deleted the feat/video-player-muted branch October 15, 2024 13:55
kodiakhq bot pushed a commit that referenced this pull request Dec 6, 2024
### Related Ticket(s)

[ADCMS-7129](https://jsw.ibm.com/browse/ADCMS-7129)

### Description

Ports a couple of v1 player fixes to v2 that got missed to fix auto-play while maintaining background-video mode:

Work that I've cherry-picked for this PR:
[ADCMS-6363](https://jsw.ibm.com/browse/ADCMS-6363)
#12070 (3d98787)
#12081 (863dfdc)

### Changelog

**New**

- Adds `muted` attribute to `video-player-container`
- Adds storybook examples for `auto-play` and `muted` video player usage

**Changed**

- Fixes `auto-play` attribute on `video-player-container`
- Make `background-video` a reflected boolean attribute all the time.
- Fix a regression with auto-play video.

<!-- React and Web Component deploy previews are enabled by default. -->
<!-- To enable additional available deploy previews, apply the following -->
<!-- labels for the corresponding package: -->
<!-- *** "test: e2e": Codesandbox examples and e2e integration tests -->
<!-- *** "package: services": Services -->
<!-- *** "package: utilities": Utilities -->
<!-- *** "RTL": React / Web Components (RTL) -->
<!-- *** "feature flag": React / Web Components (experimental) -->
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.

4 participants