I'm encountering this weird behavior where my HTML video background just won't appear in my view via my Feed component
. I see the <video/>
and <source/>
tags appearing in Chrome dev tools but I'm just not seeing the background on my browser.
What am I doing wrong and how can I fix it?
import React from 'react';
import './Feed.scss';
const feed = (props) => {
return (
<div className="row">
<video autoPlay muted loop id="myVideo">
<source src={"../../../background/nyc.mp4"} type="video/mp4"/>
Your browser does not support HTML5 video.
</video>
</div>
);
};
export default feed;
Here's the CSS:
#myVideo {
position: fixed;
right: 0;
bottom: 0;
min-width: 100%;
min-height: 100%;
}