I learn JavaScript React and now I have problem with positioning of an MP4 movie.
I have a Codesandbox
Check the file FileContentRenderer.jsx where the html5-video is used with MP4.
I want it to fit the material Box in portrait with let's say height: '20vw and landscape but whatever I try I can't get it to change I must have missed some fundamental please advice
Like this, here the movie should be just a 4th of the height and not this mega high. Whatever I try this height can't be reduced please advice?
I have this Material withStyles that is not working making the MP4 look good
const styles = theme => ({
viewerWrapperMp4: {
background: 'black',
width: '100%',
height: '20vw',
textAlign: 'center',
},
viewerMp4: {
width: 'auto',
height: '100%',
},
outer: {
height: '100%',
width: '100%',
position: 'relative',
overflow: 'hidden',
},
});
It does not matter what movie I try the movie refuses to fit the Box
