By installing the video NPM reaction and the like of dependencies
npm install--save video-react react react-dom redux
<link rel="stylesheet" href="https://video-react.github.io/assets/video-react.css" />(在index.html引入)
import React from 'react';
import {Player} from 'video-react';
export default (props) => {
return(
<Player
playsInline
src="https://media.w3.org/2010/05/sintel/trailer_hd.mp4"
/>
);
};
If you can not solve your problem please go to the following links to see if you can help https://video-react.js.org/