36 points · by vidyesh · 8y ago · 33 comments
Ah yes, because when I want to play music, my first thought is, "doing it inside an entire web browser engine is the logical choice".
It's especially bad that they're comparing it to WinAmp. WinAmp was in part popular because it was extremely minimal and resource-light.
I'm so sick of electron apps. My battery hates them. My processor hates them. I hate them.
Maybe give cmus a try, which is almost the literal opposite of an electron app: https://cmus.github.io
And that’s why Plexamp is based on electron, as OSX and Windows support comes basically free.
To be clear I’m not dissing cmus, just that it’s not the same target as Plexamp and each choices make sense.
I mean, this basically seems to be a mpd client, so the difficult work has mostly been done already. But I guess a big draw of the webtechstack is that it's easier for a lot of people to do fancy animations (like the mentioned equalizer) and all the blinkenlights.
Which is interesting in the WinAmp context, as amongst the things that drew people to it were two things: Small size & fancy UI...
I remember there was a great Cambrian explosion of music players back in the Napster era, especially on Linux. It seemed to me that the availability of good non-pirate managed options like iTunes and later Spotify gradually killed off standalone players. Maybe they're coming back into fashion.
I guess the "small" only refers to the window size and not to the resource usage. Even the application bundle size is 160 megabytes. Holy fucking shit.
Electron doesn't even have any inclination to fix it: https://github.com/electron/electron/issues/2003
They could even probably use Chromium Embedded Framework, which is usually ~40MB and get a decent improvement. The binary would only be 4x the necessary size rather than 10x then.
Next year I'm planning to rewrite iTunes as a personal project.
Essential features for me are:
- Multiple libraries
- Tags
- Playlists
- Playlist folders
- Sync
- AppleScript
- Mini player
I use iTunes as a general database manager, not only for music. I have a library for Facebook friends, where each person is stored as URL track. Clicking on the track triggers a PHP script, which opens my browser with their profile.
I also have other databases for Raspberry Pi projects, universities & departments, SMS text messages, and Chinese characters (a script on that library is what became https://pingtype.github.io ).
Before I start this huge project, could anyone tell me about alternatives? I've looked into FileMaker, Access, SQL, MongoDb, etc, but nothing has the ease of use, nested playlist folders, and scriptability of iTunes.
For what you're using it for, I'd probably using SQLite, and a mix of DB Browser for SQLite [1], which is kinda like Excel for SQL.
DB Browser can also export records to file. So if you had something like watch running on a folder, you can trigger a script as soon as that happens.
My vague thought process:
DB Browser entry:
kind entry play?
music KickassSongILike
You click KickASSSongILike, and type y in the play box.A Python script, called by watch watching the db, sees the change and uses something like mp123 to play the file. When it's done, or rather when the process for mp123 stops, so you can stop a song playing, it changes play? back to 'n'.
But honestly, you'd do a lot better just building it as a GUI app from scratch.
Easiest would be Python, which comes with Tk for graphics, and SQLite for database. Probably a weekend to get you 3/4, and then... Well it depends on the hard parts.
The hard parts are:
* Sync. Sync with what? And how does that thing officially support extensions? Or what workarounds are currently used instead?
* AppleScript. AS doesn't get much love anymore, even from Apple. Integrating it isn't an easy thing.
As a way to explain how simple most of this is, I'll explain it in terms of SQL:
* Multiple libraries = Multiple tables.
* Tags = A second table, filled with tags, that you query via JOIN.
* Playlists = A second table that references primary keys of individual song records.
* Sync = Compare last-updated fields between backup db and current db, then using developer API to update your sync service.
DB Browser is like Excel. That's like seeing a single library playlist with lots of rows with songs on.
I need playlist folders, which is a kind of nested data structure. I can drag-and-drop playlists between playlist folders, and also make Smart Playlists.
Smart Playlists are basically SQL queries. But SQL databases are flat - I can't have tables inside tables.
Anecdotaly, tagging attributes and relationships on a large library is a good way to DIY big-ish data, as my HD learned.
...
...
...
...
...
...
> We quickly settled on Electron
The reason Plexamp "can play any format" is that it's a client for mpd. While it's insanely bloated for what it does (Winamp became popular for exactly the opposite), it does look like a very good implementation of the concept visually. Especially satisfying when you always see very good music player concepts on dribbble, but none of them are actually implemented.
Absolutely stupid.
It's just plain stupid.
And they wanted the player to work on multiple platforms, unlike say Foobar2000.
Not saying it's the best technical choice, but given that it started as a personal side project it's a hardly fair to call it "plain stupid" to use Electron for this.
cool, it's ages I toyed with ncmpc and QMPDClient