Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Can I build a player on node.js that plays to local speakers?

Can I build a player on node.js that plays to local speakers?

Plan

Free/Premium

Country

USA

Device

Generic linux device with browser interface

Operating System

Any, but say Ubuntu for discussion

 

My Question or Issue

 

I have a linux-based device that has a touchscreen on it, and I want to build a Spotify player for it.

The basic architecture would be:

- a Node.js backend running on Ubuntu, playing audio through speakers directly attached to the host.  Decoding and playback of audio would happen here.
- a web app running on a browser that is on the local network, but cannot directly play audio.  The Spotify UI would be hosted here.

 

The trick is my web browser cannot play audio itself, so the backend would have to receive the audio stream directly, under control from the player app.  Ideally, the playback would persist even if the player has to reload for some reason.

 

Is this something I can do with the player APIs?  I see someone has wrapped the player in a node container, but it's not clear it can play to a local audio device.

 

What's the best way to tackle this?

Reply
0 Replies

Suggested posts

Type a product name