@metafest/pushyplayer
v0.1.26
Published
A simple template for a custom React component library
Downloads
49
Readme
PushyPlayer
PushyPlayer is a simple and customizable React video player component with modern UI and comprehensive controls.
Features
- 🎥 Responsive video playback
- 🎛️ Comprehensive controls (play/pause, volume, seek)
- 🌓 Dark mode compatible
- 🖥️ Fullscreen support
- ⌨️ Keyboard shortcuts
- 🌈 Animated interactions
Installation
Install PushyPlayer using npm or yarn:
npm install @metafest/pushyplayer
# or
yarn add @metafest/pushyplayerUsage
import { VideoPlayer } from "@metafest/pushyplayer";
import "@metafest/pushyplayer/dist/index.css";
function App() {
return (
<VideoPlayer
src="/path/to/your/video.mp4"
poster="/optional/poster/image.jpg"
/>
);
}Props
| Prop | Type | Description | Required |
| -------- | ------ | ------------------------------- | -------- |
| src | string | Path or URL to the video source | Yes |
| poster | string | Optional thumbnail image | No |
Keyboard Shortcuts
Space: Play/PauseM: Mute/UnmuteF: Toggle Fullscreen←/→: Skip backward/forward
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT License
