[Interest] QVideoProbe Woes
Jason H
scorp1us at yahoo.com
Sun Feb 9 19:58:45 CET 2014
Do I'm actually trying this on a system with a camera now, and it is not working.
the following code:
boolVideoProbe::setSource(QObject*sourceObj)
{
m_source=sourceObj;
boolret;
QMediaObject*player=qvariant_cast<QMediaObject*>(sourceObj->property("mediaObject"));
ret=QVideoProbe::setSource(player);
qDebug()<<"VideoProbe::setSource()source,player,ret:"<<sourceObj<<player<<ret;
returnret;
}
Produces the following output
VideoProbe::setSource() source, player, ret: QDeclarativeCamera(0x2464910) QCamera(0x2464a10) false
With setSource(() returning false, I can't get video frames from the camera.
Help?
________________________________
From: Lopes Yoann <Yoann.Lopes at digia.com>
To: Jason H <scorp1us at yahoo.com>
Cc: Interests Qt <interest at qt-project.org>
Sent: Friday, February 7, 2014 1:15 PM
Subject: Re: [Interest] QVideoProbe Woes
...
2c. using (passing) a Camera element as sourceObj, what will happen?
It will also work.
Yoann Lopes
Senior Software Engineer - Digia, Qt
Visit us on: http://qt.digia.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140209/a4257d2d/attachment.html>
More information about the Interest
mailing list