Fantastic, glad you got it solved. Jim
On Mon, Mar 28, 2016 at 10:56 AM, Omer Akram <om2...@ubuntu.com> wrote: > Thanks Jim > > I looked inside qtubuntu-media and apparently I had to append 'multimedia' > to the QT component list in the .pro file, and had to optimize import, the > below change worked for me. > > === modified file 'backend/QMediaPlayerTest/QMediaPlayerTest.pro' > --- backend/QMediaPlayerTest/QMediaPlayerTest.pro 2016-03-26 11:25:58 > +0000 > +++ backend/QMediaPlayerTest/QMediaPlayerTest.pro 2016-03-28 14:50:58 > +0000 > @@ -1,6 +1,6 @@ > TEMPLATE = lib > TARGET = QMediaPlayerTestbackend > -QT += qml quick > +QT += qml quick multimedia > CONFIG += qt plugin > > load(ubuntu-click) > > === modified file 'backend/QMediaPlayerTest/mytype.cpp' > --- backend/QMediaPlayerTest/mytype.cpp 2016-03-28 14:49:08 +0000 > +++ backend/QMediaPlayerTest/mytype.cpp 2016-03-28 14:51:53 +0000 > @@ -1,6 +1,6 @@ > #include "mytype.h" > > -#include <QtMultimedia/QMediaPlayer> > +#include <QMediaPlayer> > > MyType::MyType(QObject *parent) > : QObject(parent) > > > Cheers > > On Mon, Mar 28, 2016 at 6:34 PM, Jim Hodapp <jim.hod...@canonical.com> > wrote: > >> Omer, I'd take a look at the integration tests for qtubuntu-media >> (lp:qtubuntu-media) and make sure that you're doing a similar thing with >> your player setup. If you don't see a difference that might be causing your >> crash I can help you dive a little deeper in figuring this out. >> >> On Sat, Mar 26, 2016 at 7:39 AM, Omer Akram <om2...@ubuntu.com> wrote: >> >>> Hi! >>> >>> I am trying to use QMediaPlayer in my app to play internet streams. The >>> reason I am not using the QML MediaPlayer component is because due to some >>> reason the MediaPlayer.play() halts the app for the time of initial >>> buffering. So I am wanting to use QMediaPlayer for playback but it seems as >>> soon as I try to create QMediaPlayer object, my app crashes. I am not sure >>> what debug symbols I should install to know whats causing the crash. >>> >>> The crash is happening on both Xenial(desktop) and rc-proposed. I have >>> pushed the minimal QtCreator project source[1] to reproduce the crash. >>> mytype.cpp (line: 9) has the playStream() method that I am calling from >>> Main.qml (line: 34), the crash is happening at line mytype.cpp (line: 12). >>> >>> [1] lp:~om26er/+junk/qmedia_player_crash >>> >>> Any help here is greatly appreciated. >>> >>> -- >>> Mailing list: https://launchpad.net/~ubuntu-phone >>> Post to : ubuntu-phone@lists.launchpad.net >>> Unsubscribe : https://launchpad.net/~ubuntu-phone >>> More help : https://help.launchpad.net/ListHelp >>> >>> >> >
-- Mailing list: https://launchpad.net/~ubuntu-phone Post to : ubuntu-phone@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-phone More help : https://help.launchpad.net/ListHelp