-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmusic-setup.html
More file actions
165 lines (151 loc) Β· 5.17 KB
/
Copy pathmusic-setup.html
File metadata and controls
165 lines (151 loc) Β· 5.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Lofi - Music Setup Guide</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #fff;
padding: 20px;
margin: 0;
}
.container {
max-width: 800px;
margin: 0 auto;
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border-radius: 20px;
padding: 30px;
}
h1 {
text-align: center;
margin-bottom: 30px;
}
.section {
margin-bottom: 30px;
padding: 20px;
background: rgba(255, 255, 255, 0.05);
border-radius: 10px;
}
.code {
background: rgba(0, 0, 0, 0.3);
padding: 15px;
border-radius: 5px;
font-family: 'Courier New', monospace;
margin: 10px 0;
overflow-x: auto;
}
.btn {
display: inline-block;
background: rgba(255, 255, 255, 0.2);
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
text-decoration: none;
margin: 10px 10px 10px 0;
cursor: pointer;
transition: background 0.3s;
}
.btn:hover {
background: rgba(255, 255, 255, 0.3);
}
ul {
padding-left: 20px;
}
li {
margin-bottom: 5px;
}
</style>
</head>
<body>
<div class="container">
<h1>π΅ My Lofi Music Setup Guide</h1>
<div class="section">
<h2>π Current Status</h2>
<p>If streams are not working, this is likely due to:</p>
<ul>
<li><strong>CORS Policy:</strong> Many radio stations block direct access from web browsers</li>
<li><strong>HTTPS/HTTP Mixed Content:</strong> Secure sites can't load insecure streams</li>
<li><strong>Stream Availability:</strong> Some stations may be temporarily offline</li>
</ul>
</div>
<div class="section">
<h2>π‘ Solution: Add Local Music Files</h2>
<p>The best way to ensure reliable playback is to use your own music files:</p>
<h3>Step 1: Create Music Folder</h3>
<div class="code">mkdir music</div>
<h3>Step 2: Add Your Music</h3>
<p>Copy your .mp3, .wav, or .flac files into the music folder. Recommended genres:</p>
<ul>
<li>Lofi Hip Hop</li>
<li>Ambient/Chillout</li>
<li>Jazz</li>
<li>Classical</li>
<li>Electronic/Synthwave</li>
</ul>
<h3>Step 3: Update Playlist</h3>
<p>Edit <code>script.js</code> and replace the streamingSources array:</p>
<div class="code">
this.streamingSources = [
{
title: "Your Song Title",
artist: "Artist Name",
src: "music/your-song.mp3",
type: "file",
genre: "Lofi Hip Hop"
},
{
title: "Another Song",
artist: "Another Artist",
src: "music/another-song.mp3",
type: "file",
genre: "Chillout"
}
// Add more tracks...
];
</div>
</div>
<div class="section">
<h2>π΅ Free Music Sources</h2>
<p>Here are some sources for royalty-free lofi and study music:</p>
<ul>
<li><strong>Freesound.org:</strong> Free ambient and electronic sounds</li>
<li><strong>YouTube Audio Library:</strong> Free music for creators</li>
<li><strong>Incompetech:</strong> Kevin MacLeod's royalty-free music</li>
<li><strong>Free Music Archive:</strong> Creative Commons music</li>
<li><strong>Chosic:</strong> Free background music</li>
</ul>
</div>
<div class="section">
<h2>π§ Alternative: Local Server</h2>
<p>For streaming to work properly, you can run a local server:</p>
<h3>Using Python:</h3>
<div class="code">
# Navigate to your My_Lofi folder
cd path/to/My_Lofi
# Python 3
python -m http.server 8000
# Python 2
python -m SimpleHTTPServer 8000
</div>
<h3>Using Node.js:</h3>
<div class="code">
# Install http-server globally
npm install -g http-server
# Run server
http-server -p 8000
</div>
<p>Then open: <code>http://localhost:8000</code></p>
</div>
<div class="section">
<h2>π― Quick Start with Working Example</h2>
<p>I've restored the original radio station URLs that should work better. Try refreshing the main app!</p>
<a href="index.html" class="btn">π΅ Back to My Lofi Player</a>
</div>
</div>
</body>
</html>