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): add autoPlay prop to set initial isPlaying state #553

Merged
merged 1 commit into from
Nov 21, 2019
Merged

feat(video): add autoPlay prop to set initial isPlaying state #553

merged 1 commit into from
Nov 21, 2019

Conversation

jendowns
Copy link
Contributor

@jendowns jendowns commented Nov 20, 2019

Closes #551

I propose adding an autoPlay prop for consumers -- this prop will sync the initial isPlaying state of the Video component and, likewise, sync the initial PLAY/PAUSE button.

By default, autoPlay is set to false.

Changelog

New

  • add new autoPlay boolean prop with documentation

Changed

  • set initial isPlaying state to be equal to boolean value of autoPlay prop (it is false by deafult)

@vercel
Copy link

vercel bot commented Nov 20, 2019

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/carbon-design-system/gatsby-theme-carbon/6ogmctb6t
🌍 Preview: https://gatsby-theme-carbon-git-fork-jendowns-551autoplay-video.carbon-design-system.now.sh

Copy link
Contributor

@jnm2377 jnm2377 left a comment

Choose a reason for hiding this comment

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

This is great! Thanks for adding this!

@jnm2377 jnm2377 requested a review from a team November 21, 2019 15:38
@ghost ghost requested review from sstrubberg and vpicone and removed request for a team November 21, 2019 15:39
@vpicone vpicone merged commit d95e964 into carbon-design-system:master Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Video] play button covers up autoplay video & has wrong play state
3 participants