tvillarete / ipod-classic-js

An iPod Classic emulator that connects to Apple Music and Spotify. Built with React & Styled Components
http://tannerv.com/ipod
MIT License
1.43k stars 100 forks source link

Adding and storing local music files through LocalForage? #142

Closed HunterBoy344 closed 1 year ago

HunterBoy344 commented 1 year ago

Music streaming is great for some, but not for people like me; I like to own and have direct access to my music, which is why I like the iPod in the first place.

Would it be possible to add loading local files to iPod.js? In theory, LocalForage could be used to store the user’s music files in PWA local storage so they can be loaded with the iPod.js UI and not the iOS file menu. File size would probably have to be limited due to local storage limits, but even having some ability to add, store, and play local music files would absolutely make my day.

HunterBoy344 commented 1 year ago

I might actually just do this myself. Doesn’t seem exceptionally difficult since the code here is well organized. I’ll update if I manage to do it.

HunterBoy344 commented 1 year ago

Oh heck no this project’s code is spaghetti to me, I can’t make heads or tails of it.

mankybansal commented 1 year ago

@HunterBoy344 lmao that was a good 6hrs 😂

HunterBoy344 commented 1 year ago

I have good news; while I couldn’t get local files to work, I was able to make iCloud Music Library work! This basically has the same effect; any files you add to iTunes will work on iPod.js, regardless of whether or not they’re in the iTunes Store or Apple Music.