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

Add ReactPlayer and try to make it responsive #264

Merged
merged 4 commits into from
May 19, 2022

Conversation

GabLeRoux
Copy link
Member

@GabLeRoux GabLeRoux commented May 9, 2022

Changes

  • Add ReactPlayer
  • Make it responsive (see screenshot of what happens when it's not responsive):

CleanShot 2022-05-09 at 09 50 24@2x

Checklist

  • Read the contribution guide and accept the code of conduct
  • Readme (updated or not needed)
  • Tests (added, updated or not needed)

@vercel
Copy link

vercel bot commented May 9, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
website ✅ Ready (Inspect) Visit Preview May 19, 2022 at 0:01AM (UTC)

@github-actions
Copy link

github-actions bot commented May 9, 2022

Cat Gif

Base automatically changed from docusaurus to main May 18, 2022 16:37
@webbertakken
Copy link
Member

This can now be rebased as #259 is merged.

@GabLeRoux GabLeRoux closed this May 18, 2022
@GabLeRoux GabLeRoux force-pushed the docusaurus-react-player branch from 6a43f84 to 251091f Compare May 18, 2022 21:22
@github-actions
Copy link

Cat Gif

@GabLeRoux GabLeRoux marked this pull request as ready for review May 19, 2022 00:36
@GabLeRoux
Copy link
Member Author

ScreenShot Firefox Developer Edition 2022-05-18 at 20 37 22@2x

ScreenShot Firefox Developer Edition 2022-05-18 at 20 37 33@2x

ScreenShot Firefox Developer Edition 2022-05-18 at 20 37 39@2x

It's not perfect, but it's better than an iframe. We can improve that later to also keep actual video ration as described in here:
https://stackoverflow.com/questions/49393838/how-to-make-reactplayer-scale-with-height-and-width

We tried described solutions and had some troubles on firefox with some extra padding. Without css, ratio is not respected, but it still works fine.

Copy link
Member Author

@GabLeRoux GabLeRoux left a comment

Choose a reason for hiding this comment

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

lgtm :shipit:

@davidmfinol davidmfinol merged commit a557bfe into main May 19, 2022
@davidmfinol davidmfinol deleted the docusaurus-react-player branch May 19, 2022 01:22
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.

3 participants