Devialet Chat
Web Radio app - Printable Version

+- Devialet Chat (https://devialetchat.com)
+-- Forum: Devialet Chat (https://devialetchat.com/Forum-Devialet-Chat)
+--- Forum: Phantom I (103 DB, 108 DB, Premier Classic, Silver & Gold) (https://devialetchat.com/Forum-Phantom-I-103-DB-108-DB-Premier-Classic-Silver-Gold)
+--- Thread: Web Radio app (/Thread-Web-Radio-app)

Pages: 1 2


Web Radio app - 0l1v1er - 05-Mar-2016

Hi,

Waiting for Devialet to update Spark with WebRadio support, I just created a small Mac OS app that allows me to stream directly my favorite web radios to Phantom.

The idea is pretty simple : when you open the app, it creates a web server listening to ports 80 and 4040 on your mac, and redirecting requests received on these ports to the selected URL. Then, when you select a local track in Spark, Phantom or Dialog will try to get the stream from Spark but they will instead be redirected by the app to the stream URL entered in the app.

[Image: y3mV5zEEP9AXMzGHy1hPCNybwWHEH1cT9hstj7d5...pmode=none]

Here is a link to download it if you're interested : http://1drv.ms/1RN1NTr

Small User Manual :
- Close Spark before launching the app.
- Launch the app. Note : it asks you for your password, because it needs to be a privileged app to access the port 80
- Enter an URL or select one of the bookmarks (sorry guys, I put my own radio streams here)
- Launch Spark, play any local track (ie track located on your computer, to force Phantom to connect to your instance of Spark) : your stream will be played instead
- To change stream, enter another URL in the app (or click on one of the bookmarks), then, in Spark, click on another local track.

Note : I created it yesterday in a couple of hours just to simplify my life, so don't expect something professional here. But as it's a web app created with http://electron.atom.io/, all sources are in the app itself and directly editable, so feel free to edit it Smile


RE: Web Radio app - Silvertouran - 05-Mar-2016

I use an app called RADIO.NET. Used to be called rad.io
Then i just Bluetooth it to my preamp which is connected optically to my phantom.


RE: Web Radio app - ragwo - 05-Mar-2016

(05-Mar-2016, 06:56)0l1v1er Wrote: Hi,

Waiting for Devialet to update Spark with WebRadio support, I just created a small Mac OS app that allows me to stream directly my favorite web radios to Phantom.

The idea is pretty simple : when you open the app, it creates a web server listening to ports 80 and 4040 on your mac, and redirecting requests received on these ports to the selected URL. Then, when you select a local track in Spark, Phantom or Dialog will try to get the stream from Spark but they will instead be redirected by the app to the stream URL entered in the app.

[Image: y3mV5zEEP9AXMzGHy1hPCNybwWHEH1cT9hstj7d5...pmode=none]

Here is a link to download it if you're interested : http://1drv.ms/1RN1NTr

Small User Manual :
- Close Spark before launching the app.
- Launch the app. Note : it asks you for your password, because it needs to be a privileged app to access the port 80
- Enter an URL or select one of the bookmarks (sorry guys, I put my own radio streams here)
- Launch Spark, play any local track (ie track located on your computer, to force Phantom to connect to your instance of Spark) : your stream will be played instead
- To change stream, enter another URL in the app (or click on one of the bookmarks), then, in Spark, click on another local track.

Note : I created it yesterday in a couple of hours just to simplify my life, so don't expect something professional here. But as it's a web app created with http://electron.atom.io/, all sources are in the app itself and directly editable, so feel free to edit it Smile

Very nice work! 
Is it possible to port the app to Android or Windows?


RE: Web Radio app - Extra Gravity - 05-Mar-2016

This is great. But as its a web radio stream with content of questionable quality...wouldn't it be easier to just bluetooth (*insert sound of audiophiles twitching*) your web radio stream into the system?


Web Radio app - davidadamson - 05-Mar-2016

Or just use Spotify


Sent from my iPhone using Tapatalk


RE: Web Radio app - 0l1v1er - 06-Mar-2016

Forget about the actual feature. My goal wasn't really to create a web radio app actually, but more to explore the Phantom's SW Architecture and to understand if we could by some way bypass Spark and inject arbitrary audio stream in the system.

That small app is just a proof of concept of this idea. It uses webradio streams as an example, but you can virtually inject *any* kind of audio streams (in the limit of Phantom's supported audio format) in the system, just as Spark is doing, and without going BT and transcoding.


RE: Web Radio app - Extra Gravity - 06-Mar-2016

Ah ok I understand now. Good work!
I believe another guy on this forum achieved something similar with VLC Media Player and streaming content.
Could you tell me please, is it possible via android or windows?


RE: Web Radio app - jmvandamme - 06-Mar-2016

Great ! It works perfectly.
I've changed the bookmarks with my favorite webradios !

Thanks a lot.

ps : to change bookmarks -, edit these files
/Applications/PhantomStream.app/Contents/PhantomStream.app/Contents/Resources/app/js/phantomstream.js
end
/Applications/PhantomStream.app/Contents/PhantomStream.app/Contents/Resources/app/index.html
Don't forget to add the logo (.png file) in this directory /Applications/PhantomStream.app/Contents/PhantomStream.app/Contents/Resources/app/img


RE: Web Radio app - 0l1v1er - 06-Mar-2016

(06-Mar-2016, 15:46)jmvandamme Wrote: Great ! It works perfectly.
I've changed the bookmarks with my favorite webradios !

Thanks a lot.

ps : to change bookmarks -, edit these files
/Applications/PhantomStream.app/Contents/PhantomStream.app/Contents/Resources/app/js/phantomstream.js
end
/Applications/PhantomStream.app/Contents/PhantomStream.app/Contents/Resources/app/index.html
Don't forget to add the logo (.png file) in this directory /Applications/PhantomStream.app/Contents/PhantomStream.app/Contents/Resources/app/img

Glad it works for you too, and that you seems able to adapt the app to your needs Smile


RE: Web Radio app - jmvandamme - 07-Mar-2016

(06-Mar-2016, 16:38)0l1v1er Wrote:
(06-Mar-2016, 15:46)jmvandamme Wrote: Great ! It works perfectly.
I've changed the bookmarks with my favorite webradios !

Thanks a lot.

ps : to change bookmarks -, edit these files
/Applications/PhantomStream.app/Contents/PhantomStream.app/Contents/Resources/app/js/phantomstream.js
end
/Applications/PhantomStream.app/Contents/PhantomStream.app/Contents/Resources/app/index.html
Don't forget to add the logo (.png file) in this directory /Applications/PhantomStream.app/Contents/PhantomStream.app/Contents/Resources/app/img

Glad it works for you too, and that you seems able to adapt the app to your needs Smile

My version. 
   

Do you think it's possible to code a http proxy in this app to restream the original radio stream to phantom and avoid any change of title in Spark ?