About IcecastRadio
The intention of this project/application is to demonstrate how important
it can be to design a model for your application. If the model is correctly
designed, it can be used from both traditional widget based UIs and
modern UIs built with Qt Quick without too much effort.
The advantage is of course that you can provide both a desktop application which integrates with the native look and feel of the OS and at the same time have a totally different experience UI-wise, for example in an embedded device by only changing the view-layer.
IcecastRadio is actually two applications, QtCast and QuickCast. QtCast implements the widget-based view and QuickCast the quick-based view. Both application depends on a third entity, the model. You'll see this division in the source code in form of three projects, qtcast, quickcast and model.
The application was successfully compiled against Qt 4.7-beta 1 and 2.
Source code
You'll find the source code at http://gitorious.org/icecastradio. The player code is released under the MIT license, clone and have fun. Please read the README file found in the repository for more information.
Screenshots
Must have...
Remark
The application lacks a lot of features that could be expected from a radio player, for example there is no way of sorting the list of stations nor any filtering can be applied. The intention was not to create a full blown Icecast player but to demonstrate how to create a model that is usable from both a widget-based application and a quick-based application.
Patches are welcome :)
This is really a great sample. I'm having some problem building it for my Desktop:
ReplyDeleteError: dependent '..\model\libicecastmodel.a' does not exist.
Sorry, but I didn't try to building it on Windows.
ReplyDeleteYou could always just try to include the model code in the two other projects (desktop and qml). This should remove the need of linking against the static library