Created
February 23, 2016 10:05
-
-
Save libbymiller/c804443842d2ae8ad37a to your computer and use it in GitHub Desktop.
radiodan case 2 - based on http://radiodan-client.readthedocs.org/en/latest/usage/players-playlists/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var radiodan = require('radiodan-client'); | |
radiodan.create().player.discover().then(function(players) { | |
console.log(players); // [ playerObjects ] | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Used in place of main.js in https://github.com/radiodan/radiodan-skeleton the result is:
npm start
[OKAY] Loaded ENV .env File as KEY=VALUE Format
[OKAY] Trimming display Output to 113 Columns
10:05:09 broker.1 | > radiodan-skeleton@0.0.0 broker /Users/libbym/bbc/mediascape/zzzzz/radiodan-skeleton
10:05:09 broker.1 | > radiodan-broker
10:05:09 audio.1 | > radiodan-skeleton@0.0.0 audio /Users/libbym/bbc/mediascape/zzzzz/radiodan-skeleton
10:05:09 audio.1 | > radiodan-server ../../config/radiodan-config.json
10:05:09 broker.1 | Broker started 2016-02-23 10:05:09.609699144 +0000 GMT
10:05:09 broker.1 | Log Level: info
10:05:09 broker.1 | time="2016-02-23T10:05:09Z" level=info msg="Broker services on tcp://0.0.0.0:7171"
10:05:09 broker.1 | time="2016-02-23T10:05:09Z" level=info msg="Broker publishes on tcp://0.0.0.0:7172"
10:05:09 broker.1 | time="2016-02-23T10:05:09Z" level=info msg="Broker subscribes on tcp://0.0.0.0:7173"
10:05:09 app.1 | []
10:05:09 audio.1 | 2016-02-23T10:05:09.815Z - info: [server] Set logging to info
10:05:09 broker.1 | time="2016-02-23T10:05:09Z" level=info msg="Adding worker "audio-ec001e60-da14-11e5-8dd0-4331031c8b6c" to audio…
10:05:09 audio.1 | 2016-02-23T10:05:09.917Z - warn: [wait-for-socket] Cannot connect
10:05:10 audio.1 | 2016-02-23T10:05:10.926Z - info: [client] ready on port 49154
10:05:10 audio.1 | 2016-02-23T10:05:10.928Z - info: [radio-controller] Registered Worker: player.main
10:05:10 broker.1 | time="2016-02-23T10:05:10Z" level=info msg="Adding worker "radiodan-player-main-eca781f1-da14-11e5-8dd0-4331031c…