I am trying to put video background on my site but when I put video tag to my react script it start endlessly loading on Firefox and when I try it on chrome it shows the video at 0 seconds I've tried .mp4 and .mov formats without success.
import React, { Component } from "react";
import "./App.css";
import LogginScreen from "./components2/LogginScreen";
class App extends Component {
render() {
return (
<div>
<LogginScreen></LogginScreen>
<video controls autoPlay loop muted>
<source src="hd1992.mov" type="video/mov"></source>
</video>
</div>
);
}
}
export default App;
<video autoplay muted loop name="media"> <source src="http://www.html5rocks.com/en/tutorials/video/basics/devstories.mp4" type="video/mp4" ></source> </video>