Re: [SailfishDevel] Front camera access

2015-02-10 Thread Billy Pitiot
Hi, sorry not to asnwer earlier, I got some higher priority task to deal
with first.
Thanks to all those who answered, it helped me understand.


   Hi all,
   I am currently trying to access the front camera of the Jolla phone. I
   managed to get a VideoOutput to display the rear camera using import
   QtMultimedia 5.0 but I do not understand how to change to the front
   camera.

 You cannot do that from QML. You need to have some C++ glue for that.

 You create a C++ class inheriting QObject which gets passed
 Camera::mediaObject from QML

 From that mediaObject, get QMediaService:
 http://doc.qt.io/qt-5/qmediaobject.html#service

 Then request QVideoDeviceSelectorControl control. Use that to switch the
 devixe.


Thanks a lot for your answer Mohammed Hassan. I got to try that today and
it works perfectly. That's exactly what I needed.

Thanks again,
Billy
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Front camera access

2015-02-05 Thread Mohammed Hassan
On Fri, Feb 06, 2015 at 01:37:24AM +0500, Andrey Kozhevnikov wrote:
  SailfishOS yes, but gstreamer1.x is available in repo
 

GStreamer 1.x is available but:
1) It's not yet allowed in Harbour
2) It's not fully functional yet

Cheers,

  05.02.2015 23:11, Dmitry пишет:
 
  AFAIK, Sailfish OS currently using gstreamer-0.10
 
  On 5 February 2015 at 13:06, Billy Pitiot [1]bi...@aito-touch.com
  wrote:
 
  Hi all,
  I am currently trying to access the front camera of the Jolla phone. I
  managed to get a VideoOutput to display the rear camera using import
  QtMultimedia 5.0 but I do not understand how to change to the front
  camera.
  I have seen some examples like this code for CameraPlus:
  [2]https://gitorious.org/cameraplus
  But if I try to compile it using Sailfish IDE, I get such errors:
  No provider of 'gstreamer1.0' found.
  No provider of 'pkgconfig(gstreamer-1.0)' found.
  pkgconfig(gstreamer-1.0) is needed by harbour-cameraplus-0-1.armv7hl
  Am I missing something? What should I rather use?
  Billy
 
  ___
  SailfishOS.org Devel mailing list
  To unsubscribe, please send a mail to
  [3]devel-unsubscr...@lists.sailfishos.org
 
 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to 
 [4]devel-unsubscr...@lists.sailfishos.org
 
 References
 
  1. mailto:bi...@aito-touch.com
  2. https://gitorious.org/cameraplus
  3. mailto:devel-unsubscr...@lists.sailfishos.org
  4. mailto:devel-unsubscr...@lists.sailfishos.org

 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Front camera access

2015-02-05 Thread Mohammed Hassan
On Thu, Feb 05, 2015 at 01:06:08PM +0200, Billy Pitiot wrote:
  Hi all,
  I am currently trying to access the front camera of the Jolla phone. I
  managed to get a VideoOutput to display the rear camera using import
  QtMultimedia 5.0 but I do not understand how to change to the front
  camera.

You cannot do that from QML. You need to have some C++ glue for that.

You create a C++ class inheriting QObject which gets passed Camera::mediaObject 
from QML

From that mediaObject, get QMediaService:
http://doc.qt.io/qt-5/qmediaobject.html#service

Then request QVideoDeviceSelectorControl control. Use that to switch the devixe.

  I have seen some examples like this code for CameraPlus:
  [1]https://gitorious.org/cameraplus
  But if I try to compile it using Sailfish IDE, I get such errors:
  No provider of 'gstreamer1.0' found.
  No provider of 'pkgconfig(gstreamer-1.0)' found.
  pkgconfig(gstreamer-1.0) is needed by harbour-cameraplus-0-1.armv7hl
  Am I missing something? What should I rather use?

Don't bother with camera plus. It does not use QtMultimedia. It uses
GStreamer directly. Is that what you need?

Cheers,
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


Re: [SailfishDevel] Front camera access

2015-02-05 Thread Andrey Kozhevnikov
for front camera i don't know if Harbour-allowed ways are exists. And 
for gstreamer you need to add BuildRequires matching your missing 
development packages added to spec


05.02.2015 16:06, Billy Pitiot пишет:

Hi all,

I am currently trying to access the front camera of the Jolla phone. I 
managed to get a VideoOutput to display the rear camera using import 
QtMultimedia 5.0 but I do not understand how to change to the front 
camera.

I have seen some examples like this code for CameraPlus:
https://gitorious.org/cameraplus

But if I try to compile it using Sailfish IDE, I get such errors:
No provider of 'gstreamer1.0' found.
No provider of 'pkgconfig(gstreamer-1.0)' found.
pkgconfig(gstreamer-1.0) is needed by harbour-cameraplus-0-1.armv7hl

Am I missing something? What should I rather use?

Billy


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Front camera access

2015-02-05 Thread Dmitry
AFAIK, Sailfish OS currently using gstreamer-0.10

On 5 February 2015 at 13:06, Billy Pitiot bi...@aito-touch.com wrote:

 Hi all,

 I am currently trying to access the front camera of the Jolla phone. I
 managed to get a VideoOutput to display the rear camera using import
 QtMultimedia 5.0 but I do not understand how to change to the front camera.
 I have seen some examples like this code for CameraPlus:
 https://gitorious.org/cameraplus

 But if I try to compile it using Sailfish IDE, I get such errors:
 No provider of 'gstreamer1.0' found.
 No provider of 'pkgconfig(gstreamer-1.0)' found.
 pkgconfig(gstreamer-1.0) is needed by harbour-cameraplus-0-1.armv7hl

 Am I missing something? What should I rather use?

 Billy


 ___
 SailfishOS.org Devel mailing list
 To unsubscribe, please send a mail to
 devel-unsubscr...@lists.sailfishos.org

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Front camera access

2015-02-05 Thread Andrey Kozhevnikov

SailfishOS yes, but gstreamer1.x is available in repo

05.02.2015 23:11, Dmitry пишет:

AFAIK, Sailfish OS currently using gstreamer-0.10

On 5 February 2015 at 13:06, Billy Pitiot bi...@aito-touch.com 
mailto:bi...@aito-touch.com wrote:


Hi all,

I am currently trying to access the front camera of the Jolla
phone. I managed to get a VideoOutput to display the rear camera
using import QtMultimedia 5.0 but I do not understand how to
change to the front camera.
I have seen some examples like this code for CameraPlus:
https://gitorious.org/cameraplus

But if I try to compile it using Sailfish IDE, I get such errors:
No provider of 'gstreamer1.0' found.
No provider of 'pkgconfig(gstreamer-1.0)' found.
pkgconfig(gstreamer-1.0) is needed by harbour-cameraplus-0-1.armv7hl

Am I missing something? What should I rather use?

Billy

___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to
devel-unsubscr...@lists.sailfishos.org
mailto:devel-unsubscr...@lists.sailfishos.org




___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org


___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org