tunzo-player 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +55 -28
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,51 +1,78 @@
1
1
  # Tunzo Player 🎵
2
2
 
3
- [![npm version](https://img.shields.io/npm/v/@kulasekaran/tunzo-player.svg)](https://www.npmjs.com/package/@kulasekaran/tunzo-player)
4
- [![npm downloads](https://img.shields.io/npm/dt/@kulasekaran/tunzo-player.svg)](https://www.npmjs.com/package/@kulasekaran/tunzo-player)
5
- [![License](https://img.shields.io/npm/l/@kulasekaran/tunzo-player.svg)](LICENSE)
6
- [![build](https://img.shields.io/badge/build-passing-brightgreen.svg)](#)
3
+ [![npm version](https://img.shields.io/npm/v/@kulasekaran/tunzo-player.svg?style=for-the-badge)](https://www.npmjs.com/package/@kulasekaran/tunzo-player)
4
+ [![npm downloads](https://img.shields.io/npm/dt/@kulasekaran/tunzo-player.svg?style=for-the-badge)](https://www.npmjs.com/package/@kulasekaran/tunzo-player)
5
+ [![License](https://img.shields.io/npm/l/@kulasekaran/tunzo-player.svg?style=for-the-badge)](LICENSE)
6
+ [![Build Status](https://img.shields.io/badge/build-passing-brightgreen.svg?style=for-the-badge)](#)
7
+ [![Angular](https://img.shields.io/badge/Angular-DD0031?style=for-the-badge&logo=angular&logoColor=white)](#)
8
+ [![Ionic](https://img.shields.io/badge/Ionic-3880FF?style=for-the-badge&logo=ionic&logoColor=white)](#)
7
9
 
8
- > 🔥 Built for the `Tunzo` Music App — now available as a reusable npm package.
10
+ > Built for the **Tunzo Music App** — now available as a reusable npm package
11
+ > A feature-rich audio playback utility for Angular + Ionic applications
9
12
 
10
- ---
13
+ <!-- ![Tunzo Player Demo](https://via.placeholder.com/800x400?text=Tunzo+Player+Demo+GIF/Image)
14
+ *(Consider adding a real screenshot or animated GIF here)* -->
11
15
 
12
- ## 🎧 Overview
16
+ ## Features
13
17
 
14
- **Tunzo Player** is a fully-featured audio playback utility for Angular + Ionic apps.
15
- It supports streaming quality control, song queue, shuffle, theming, and Firestore/localStorage song likes.
18
+ | Category | Features |
19
+ |----------------|--------------------------------------------------------------------------|
20
+ | **Playback** | Queue management, Shuffle, Repeat, Crossfade |
21
+ | **Quality** | Dynamic stream quality (12kbps to 320kbps) |
22
+ | **UI** | Dark/Light theme support with auto-detection |
23
+ | **Storage** | Firestore & localStorage integration for favorites |
24
+ | **Modular** | Reusable service classes with clean API |
16
25
 
17
- ---
18
26
 
19
- ## 📦 Installation
27
+ ## 💻 Basic Usage
20
28
 
21
29
  ```bash
22
- npm install @kulasekaran/tunzo-player
23
-
24
-
25
- 🧱 Usage Example:
26
-
27
- import {
30
+ import {
28
31
  TunzoPlayer,
29
- StreamSettings,
32
+ StreamSettings,
30
33
  ThemeManager,
31
34
  Favorites,
32
35
  TunzoPlayerAPI
33
36
  } from '@kulasekaran/tunzo-player';
34
37
 
38
+ // Initialize components
35
39
  const player = new TunzoPlayer();
36
40
  const api = new TunzoPlayerAPI();
37
41
 
38
- // Search songs
39
- const songs = await api.searchSongs('arijit singh');
42
+ // Example workflow
43
+ async function playMusic() {
44
+ // Search songs
45
+ const results = await api.searchSongs('popular songs');
46
+
47
+ // Play first result
48
+ player.playSong(results[0]);
49
+
50
+ // Like the song
51
+ Favorites.like(results[0]);
52
+
53
+ // Set quality to High
54
+ StreamSettings.setQuality(3);
55
+
56
+ // Enable dark mode
57
+ ThemeManager.toggleDarkMode(true);
58
+ }
59
+ ```
60
+
61
+ ## 🚀 Installation
40
62
 
41
- // Play first song
42
- player.playSong(songs[0]);
63
+ ```bash
64
+ npm i tunzo-player
65
+ # or
66
+ yarn add tunzo-player
67
+ ```
43
68
 
44
- // Like a song
45
- Favorites.like(songs[0]);
69
+ ## 🎚️ Stream Quality Options
46
70
 
47
- // Enable dark mode
48
- ThemeManager.toggle();
71
+ | Value | Label |
72
+ | ----- | ----------------- |
73
+ | 0 | Very Low (12kbps) |
74
+ | 1 | Low (48kbps) |
75
+ | 2 | Medium (96kbps) |
76
+ | 3 | High (160kbps) |
77
+ | 4 | Ultra (320kbps) |
49
78
 
50
- // Set quality to Ultra (320kbps)
51
- StreamSettings.setQuality(3);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tunzo-player",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "A music playback service for Angular and Ionic apps with native audio control support.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",