dplayer
npm install react-dplayer



Open the project in Gitpod (free online dev environment for GitHub) and start coding immediately.

React component for Dplayer based on DPlayer(V1.25.1).
``bash`
npm install react-dplayer -D
`js
import DPlayer from "react-dplayer";
class Example extends Component {
render() {
return (
video:{url: 'http://static.smartisanos.cn/common/video/t1-ui.mp4'}
}}
/>
)
}
}
`
`html`
The package also includes an in-built example under the /example folder. Run the sample application by cloning project and running npm start.
| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| options | Object | -- | read doc |
> camel-case rule example play as onPlay
| Name | Params | Description |
| ---- | ------ | ----------- |
| allEvent | default | read doc |
- npm run start: Run example in development modenpm run compile
- : Build react-dplayer(commonjs)npm run dist
- : dist react-dplayer (umd)
react-dplayer is released under the MIT license`.