### Running Development Example (npm) Source: https://github.com/moeplayer/react-dplayer/blob/master/README.md Command to start the local development server and run the example application included with the react-dplayer package for testing and development purposes. ```bash npm run start ``` -------------------------------- ### Using react-dplayer in the Browser (HTML/JS) Source: https://github.com/moeplayer/react-dplayer/blob/master/README.md Example demonstrating how to include react-dplayer and its dependencies via script tags and render the component directly in the browser using ReactDOM.render. This is suitable for simple setups without a build tool. ```html ``` -------------------------------- ### Installing react-dplayer with npm Source: https://github.com/moeplayer/react-dplayer/blob/master/README.md Command to install the react-dplayer package as a development dependency using npm. This is the standard way to add the component to a Node.js project. ```bash npm install react-dplayer -D ``` -------------------------------- ### Using react-dplayer in CommonJS (React) Source: https://github.com/moeplayer/react-dplayer/blob/master/README.md Example demonstrating how to import and use the react-dplayer component within a React class component using CommonJS modules. It shows passing basic video options to the DPlayer instance. ```js import DPlayer from "react-dplayer"; class Example extends Component { render() { return ( ) } } ``` -------------------------------- ### Distributing react-dplayer (npm) Source: https://github.com/moeplayer/react-dplayer/blob/master/README.md Command to build the react-dplayer package into the UMD (Universal Module Definition) format, suitable for distribution and use in various environments (browser, AMD, CommonJS). ```bash npm run dist ``` -------------------------------- ### Compiling react-dplayer (npm) Source: https://github.com/moeplayer/react-dplayer/blob/master/README.md Command to build the react-dplayer package into the commonjs module format, typically used for Node.js environments. ```bash npm run compile ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.