-
Notifications
You must be signed in to change notification settings - Fork 35
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): Adding support for muted, autoplay and loop - Media container adding autoplay video option - FRONT-4600 #3603
Conversation
planctus
commented
Sep 4, 2024
•
edited by emeryro
Loading
edited by emeryro
- add parameters to the video component, to toggle different states (muted, loop, autoplay, controls)
- add single toggle in media container to switch between default video, and autoplay one (also having loop, muted and hidden controls)
extra_classes: video_classes, | ||
extra_attributes: video_attributes, | ||
extra_attributes: video.attributes|default([])|merge([{ name: 'data-ecl-banner-video' }]), |
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.
shouldn't it be _video.extra_attributes
?
...args, | ||
autoplay: false, | ||
muted: false, | ||
loop: false, |
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.
The idea of COMM here is to have a single control that would toggle the different video options: autoplay, muted, loop and controls.
We should keep the parameter in the video, as you have them, but just expose one control in the media container (either we have a normal video player, or we have an autoplay video like on the banner)
…y into FRONT-4600-video-autoplay
…y into FRONT-4600-video-autoplay