Examples for react-jPlayer and react-jPlaylist
-
git clone https://github.com/jPlayer/react-jPlayer-examples.git
-
For the jPlayer examples:
cd jPlayers/[projectName]
OR for the jPlaylist examples:cd jPlaylists/[projectName]
-
npm install
-
npm run dev
-
open http://localhost:8080/ in your browser
These examples are just to show how to use react-jPlayer without npm or even webpack.
They just include the .css and .js files from /dist/
directly into the .html file so they can be run in the browser directly.
These examples include the .css and .js files from the node_modules
in the .html file just for ease of use but you can just copy the files manually to your project and include them instead if you don't want to use npm at all.
-
git clone https://github.com/jPlayer/react-jPlayer-examples.git
-
For the jPlayer example:
cd jPlayers/UMDPlayer
OR for the jPlaylist example:cd jPlaylists/UMDPlaylist
-
npm install
-
npm run dist
-
open
public/index.html