How to change the height and width of video js player in react js #8963
Unanswered
opticSquid
asked this question in
Q&A
Replies: 1 comment
-
Please add this to your css css file and import it in your component and you will be able to adjust the height and width of video js player as required. .vjs-fluid:not(.vjs-audio-only-mode), .vjs-9-16 { It worked for me, let me know if that helped you? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using video-js to play
mpeg-dash
streams in react. I have made this component for my use:I'm trying to change the height of the video player but I'm unable to do so. I tried using the tailwind classes like
h-4/5
etc but they are not taking any effect. But then I found this document invideo-js
site. Stating:I'm not sure how to set this property properly and change the height. Please help me with this.
Beta Was this translation helpful? Give feedback.
All reactions