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.
- package/README.md +51 -0
- package/package.json +8 -2
package/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Tunzo Player 🎵
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@kulasekaran/tunzo-player)
|
|
4
|
+
[](https://www.npmjs.com/package/@kulasekaran/tunzo-player)
|
|
5
|
+
[](LICENSE)
|
|
6
|
+
[](#)
|
|
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.
|
|
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": [
|
|
10
|
+
"keywords": [
|
|
11
|
+
"music",
|
|
12
|
+
"player",
|
|
13
|
+
"angular",
|
|
14
|
+
"ionic",
|
|
15
|
+
"audio"
|
|
16
|
+
],
|
|
11
17
|
"author": "Kulasekaran",
|
|
12
18
|
"license": "MIT",
|
|
13
19
|
"publishConfig": {
|