tunzo-player 1.0.0 → 1.0.3

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 +51 -0
  2. package/package.json +8 -2
package/README.md ADDED
@@ -0,0 +1,51 @@
1
+ # Tunzo Player 🎵
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)](#)
7
+
8
+ > 🔥 Built for the `Tunzo` Music App — now available as a reusable npm package.
9
+
10
+ ---
11
+
12
+ ## 🎧 Overview
13
+
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.
16
+
17
+ ---
18
+
19
+ ## 📦 Installation
20
+
21
+ ```bash
22
+ npm install @kulasekaran/tunzo-player
23
+
24
+
25
+ 🧱 Usage Example:
26
+
27
+ import {
28
+ TunzoPlayer,
29
+ StreamSettings,
30
+ ThemeManager,
31
+ Favorites,
32
+ TunzoPlayerAPI
33
+ } from '@kulasekaran/tunzo-player';
34
+
35
+ const player = new TunzoPlayer();
36
+ const api = new TunzoPlayerAPI();
37
+
38
+ // Search songs
39
+ const songs = await api.searchSongs('arijit singh');
40
+
41
+ // Play first song
42
+ player.playSong(songs[0]);
43
+
44
+ // Like a song
45
+ Favorites.like(songs[0]);
46
+
47
+ // Enable dark mode
48
+ ThemeManager.toggle();
49
+
50
+ // Set quality to Ultra (320kbps)
51
+ StreamSettings.setQuality(3);
package/package.json CHANGED
@@ -1,13 +1,19 @@
1
1
  {
2
2
  "name": "tunzo-player",
3
- "version": "1.0.0",
3
+ "version": "1.0.3",
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",
7
7
  "scripts": {
8
8
  "build": "tsc"
9
9
  },
10
- "keywords": ["music", "player", "angular", "ionic", "audio"],
10
+ "keywords": [
11
+ "music",
12
+ "player",
13
+ "angular",
14
+ "ionic",
15
+ "audio"
16
+ ],
11
17
  "author": "Kulasekaran",
12
18
  "license": "MIT",
13
19
  "publishConfig": {