npm install
node ./test.mjs
- Open Roon
- In Roon, go to Settings > Extensions
- This extension should be listed. Enable it by hitting the
Enable
button next to the "Roon Connect Stream Example". - Hit the
Settings
button (it's where theEnable
button used to be located), and select the audio output you want this example to stream to. - Go back to Home in Roon make sure Roon has that audio output selected in the bottom bar. This will be useful to see stuff when you start playing audio.
Back in the console where you ran this sample:
- Hit enter a few times to ensure you see the prompt.
- You can type
play http://strm112.1.fm/dubstep_mobile_mp3
and hit enter. It will take a few seconds to start streaming/buffering, but you should hear Roon playing this stream and see your brand taking over the bottom bar. - You can type
help
for more commands.
You will want to modify test.mjs
and change the following stuff at a minimum:
- the stuff passed in to
re.init()
- the stuff passed to
re.play()
- You may want to modify the settings logic in
lib.mjs
-- Roon extensions can export settings UI that can be set up in Roon, making configuring this program easier. - Normally, the extension will save all state and configuration options to a
config.json
in the directory where it was started. You will need to override RoonApi.prototype.save_config/load_config if you want to change this behavior.
You will probably want to modify the following:
const logger =
- remove all the interactive prompt stuff