Created
December 4, 2022 20:42
-
-
Save 3200pro/c878d386faef6477bf407fab7f947010 to your computer and use it in GitHub Desktop.
Solution: Aspect Correct, Mobile responsive React video setup (Using React Player)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div className="mt-30 w-screen max-w-full"> | |
<VideoModule videoURL={url} /> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div className="relative aspect-video w-full overflow-hidden"> | |
<ReactPlayer | |
className="absolute left-0 top-0 aspect-video w-full " | |
url={videoURL} | |
width="100%" | |
height="100%" | |
/> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment