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

Allow multiple sources for video #258

Merged
merged 4 commits into from
Jun 1, 2021
Merged

Allow multiple sources for video #258

merged 4 commits into from
Jun 1, 2021

Conversation

MatixYo
Copy link
Contributor

@MatixYo MatixYo commented May 27, 2021

This PR allows for adding multiple video sources (in optimized formats like WebM) to a video.
With these changes the video prop can be an array with video sources besides a string:
<Cropper... video={[{ src: '...', type: 'video/webm' }]} />

Demo: https://codesandbox.io/s/react-easy-crop-for-videos-forked-fjmj5

@codesandbox-ci
Copy link

codesandbox-ci bot commented May 27, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 0bb3e08:

Sandbox Source
react-easy-crop Configuration

@MatixYo MatixYo marked this pull request as draft May 27, 2021 19:31
@ValentinH
Copy link
Owner

Thanks for this contribution 👋
I've just pushed a small improvement regarding the TS types of the video prop, if you are fine with it, we can merge :)

@ValentinH ValentinH self-requested a review June 1, 2021 10:12
@MatixYo
Copy link
Contributor Author

MatixYo commented Jun 1, 2021

Thanks, I'm still learning TS. It's ready to be merged then.

@MatixYo MatixYo marked this pull request as ready for review June 1, 2021 10:14
@ValentinH ValentinH merged commit aa808fa into ValentinH:main Jun 1, 2021
@ValentinH
Copy link
Owner

Published under v3.5.0 🚀

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.

None yet

2 participants