Ubuntu – Playing Sound with Ubuntu QML Toolkit preview

application-developmentqmlqt5ubuntu-touch

I've installed the Ubuntu QML Toolkit Preview as per the instructions on http://developer.ubuntu.com/get-started/gomobile/ (with a minor fiddle to get it working on 12.04). I'm trying to write an app that plays a sound file. Aparrently you can do this using QtMultiMediakit in QtQuick 1, but not in QtQuick 2 as used by the toolkit.

Is it possible to write an app using the toolkit that plays sound?

Best Answer

  • Problem solved, the answer is to use QtMultimedia 5.0, which now provides the Audio element.

    http://qt-project.org/doc/qt-5.0/qtmultimedia/qml-qtmultimedia5-audio.html