somafm icon indicating copy to clipboard operation
somafm copied to clipboard

Support Windows?

Open laggingreflex opened this issue 7 years ago • 2 comments

Nice project!

I'd love for it to work on Windows. I installed mplayer-for-windows and was able to get it to work with some minor adjustments in code, but I think a native solution (that didn't require external installation of mplayer) would be better. Have you considered node-speaker (I haven't used it myself, just curious). Another idea I had was to just offload the playlist to the user's default media player (using opn) but then I can see it wouldn't be able to give you back the title and other information about playing tracks, and it might be better to just open it from somafm website itself.

I'd love to help out with a PR if you like, but I don't have much experience with audio and buffers, will definitely give it a try though. Let me know your thoughts on above.

laggingreflex avatar Apr 21 '17 04:04 laggingreflex

Hi, thanks for your report and ideas!

Which code adjustments did you make to get it running? I can imagine it's just a problem finding the mplayer executable, right? Did you add the path to mplayer.exe to the %PATH% environment variable? That worked for me (after logging out and back in).

This project started as a simple wrapper around the SomaFM API and MPlayer with nicer output. I also had in mind switching to node-speaker to be more independant but that would involve decoding the MP3 stream and so on. It's like building a completely new player which is too much, imo. MPlayer is just right for this situation and it's OK to depend on it since it's available for every platform. Using opn doesn't quite fit in the concept of this application.

If you have any other ideas, just let me know. :)

cuschk avatar Apr 24 '17 14:04 cuschk

Hi, thanks for your report and ideas!

Which code adjustments did you make to get it running? I can imagine it's just a problem finding the mplayer executable, right? Did you add the path to mplayer.exe to the %PATH% environment variable? That worked for me (after logging out and back in).

This project started as a simple wrapper around the SomaFM API and MPlayer with nicer output. I also had in mind switching to node-speaker to be more independant but that would involve decoding the MP3 stream and so on. It's like building a completely new player which is too much, imo. MPlayer is just right for this situation and it's OK to depend on it since it's available for every platform. Using opn doesn't quite fit in the concept of this application.

If you have any other ideas, just let me know. :)

Hi!

First of all, nice project!

I was able to get this to work by adding a '.com' in the cmd property (mpv)in the players array. For some reason the application was not finding the mpv starting point...

I've never used node.js before, and i broke my head a little do discover this 😆

Waiting for new updates 👍

damews avatar Nov 05 '19 03:11 damews