-
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
feat(video-player): enable autoplay & load as muted #12070
Conversation
Deploy preview created for package Built with commit: bcaf90f40aae3998ab6e41eeaa12344869b31c74 |
Deploy preview created for package Built with commit: bcaf90f40aae3998ab6e41eeaa12344869b31c74 |
Deploy preview created for package Built with commit: bcaf90f40aae3998ab6e41eeaa12344869b31c74 |
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.
Need to look into potential breaking change for CAEM.
packages/web-components/src/components/video-player/video-player-container.ts
Show resolved
Hide resolved
### 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) -->
Related Ticket(s)
https://jsw.ibm.com/browse/ADCMS-6363
Description
Fixes the
auto-play
attribute to play video on load and adds amuted
attribute to load the video with sound fully muted.Changelog
New
muted
attribute tovideo-player-container
auto-play
andmuted
video player usageChanged
auto-play
attribute onvideo-player-container