-
Notifications
You must be signed in to change notification settings - Fork 30
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 + Markdown): update react player + put videos in markdown #2941
Conversation
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.
nice!
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.
2 things I noticed:
- On the Video story the props table isn't loading
Invalid name '', must include alphanumeric characters
[Read the docs](http://storybook.js.org/docs/)
- the video story with a placeholder image doesn't play the video when you click, you have to click twice
{(args) => { | ||
return <Video {...args} />; | ||
}} | ||
</Story> | ||
</Canvas> | ||
|
||
## Here is an example with a Viemo URL |
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.
Viemo lol
@@ -347,4 +347,18 @@ Use the `printf()` function. | |||
|
|||
### Iframes | |||
|
|||
<iframe src="https://player.vimeo.com/video/145702525?byline=0&portrait=0&badge=0" width="640" height="360" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe> | |||
Vimeo and Youtube video iframes will be rendered by our Video component, otherwise they'll render as stated. |
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.
nit: what does render as stated mean?
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.
i meant just renders the original code, i'll rephrase
📬Published Alpha Packages:@codecademy/[email protected] |
🚀 Styleguide deploy preview ready! |
Overview
Updates the react-player package to the newest version + makes the video component the default render component for iframed Vimeos + Youtubes
PR Checklist
Testing Instructions
PR Links and Envs