Playlists mashup example showing real time music broadcasts on DR (Danish broadcasting corporation) channels.
Example is implemented using WebSockets HTML 5 with Camel, ActiveMQ and Jetty.
-
Download and unzip ActiveMQ 5.6.0 from http://activemq.apache.org/download.html
-
start ActiveMQ from the bin directory with ./activemq console
-
Compile and start playlists-websocket application
cd playlists/playlists-websocket mvn clean camel:run
-
Compile and start playlists-web application
cd playlists/playlists-web mvn clean package jetty:run
-
Open your web browser
http://localhost:8080/playlists.html and click on connect button
-
Compile and start playlists-feeder application
cd playlists/playlists-feeder mvn clean camel:run -D lfm-api-key=your-LastFmApiKey
A api key can be obtained from http://www.last.fm/api/account. Without a valid key the playlists will not be enriched with album info from Last FM.