tunio-player
v1.2.0
Published
Tunio Audio Player Component
Readme
Tunio Player
Tunio Audio Player Component for React applications.
Installation
npm install tunio-player
# or
yarn add tunio-player
# or
pnpm add tunio-playerUsage
Import the component and styles
import { TunioPlayer } from 'tunio-player'
function App() {
return (
<div>
<TunioPlayer
id="your-radio-id"
theme="dark"
online
/>
</div>
)
}Props
id(string): Radio station idtheme("dark" | "light"): Player theme (default: "dark")ambient(boolean): Enable ambient background effect (default: false)opacity(number): Player opacity (default: 1)online(boolean): online mode by default
Features
- 🎵 Audio streaming with auto-reconnection
- 🎨 Dark and light themes
- ✨ Ambient background effects
- 📱 Responsive design
- 🔊 Volume control
- 🔇 Mute functionality
- ⏯️ Play/pause controls
- 📡 Real-time track information
TypeScript Support
This package includes TypeScript definitions out of the box.
Local Development
# Install dependencies
pnpm install
# Run demo in development mode
pnpm dev
# Build package
pnpm buildLicense
MIT
