### Start Development Server Source: https://github.com/chintan9/plyr-react/wiki/Getting-started-for-Development Run this command to start the development server, which includes a watcher and the Styleguide. Components are developed in `src/lib/components`. ```bash npm run dev ``` -------------------------------- ### Install Project from Zip Source: https://github.com/chintan9/plyr-react/wiki/Getting-started-for-Development Download and extract the project zip file, then navigate to the directory and install dependencies if you are not familiar with Git. ```bash npm run install ``` -------------------------------- ### Clone and Install Project Source: https://github.com/chintan9/plyr-react/wiki/Getting-started-for-Development Use these commands to clone the repository and install dependencies if you are familiar with Git. ```bash git clone git@github.com:chintan9/plyr-react.git cd plyr-react npm run install ``` -------------------------------- ### Install plyr-react Source: https://github.com/chintan9/plyr-react/blob/master/README.md Install the plyr-react package using NPM, Yarn, or PNPM. ```bash # NPM npm install plyr-react # Yarn yarn add plyr-react # PNPM pnpm add plyr-react ``` -------------------------------- ### Basic Plyr React Player Setup Source: https://github.com/chintan9/plyr-react/blob/master/README.md Demonstrates basic usage of the `` component with video source and custom controls. Ensure the stylesheet is imported for default theming. ```tsx import Plyr from "plyr-react" import "plyr-react/plyr.css" // Player source configuration const plyrProps = { source: { type: "video", sources: [ { src: "https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-720p.mp4", type: "video/mp4", size: 720, }, ], poster: "https://cdn.plyr.io/static/demo/View_From_A_Blue_Moon_Trailer-HD.jpg", }, options: { // Full list of options: https://github.com/sampotts/plyr#options controls: [ "play-large", "play", "progress", "current-time", "mute", "volume", "captions", "settings", "pip", "airplay", "fullscreen", ], }, } function MyPlayer() { return } ``` -------------------------------- ### Basic HLS Integration with usePlyr and useHls Source: https://github.com/chintan9/plyr-react/blob/master/README.md Example of integrating HLS playback using both the usePlyr and useHls hooks within a video element. ```jsx