Re: [SailfishDevel] Sailfishos.org site renewal!

2015-02-05 Thread Kaj-Michael Lang
On la, 2015-01-31 at 12:43 +0100, Timur Kristóf wrote:
> - the old link says 404 and I can't find the same stuff on the new web
> site.

Related, MerSDK VM points to https://sailfishos.org/develop-faq.html for
help, but that does not exist anymore.

Otherwise the nice site look good, but please bring back the
documentation.

-- 
Kaj-Michael Lang 

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

[SailfishDevel] Front camera access

2015-02-05 Thread 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

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  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 > 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


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

[SailfishDevel] TextArea | Using EnterKey.onClicked

2015-02-05 Thread Nicolas Cisco
Hi,
I'm using the EnterKey.onClicked in a TextArea, the problem is that if I
retrieve the text area's text in the callback function, it has a trailing
newline (the enter input). Is there a way to prevent the enter key?. I
though of striping the enterkey by hand in the callback like `textArea.text
= textArea.text.slice(0, -1)`, but, the problem is that if you are not in
the end of the input this doesn't work.

The example is simple:

TextArea {
   id: textArea
   EnterKey.onClicked: console.log("my text is: \""+textArea.text+"\"")
}

I tried to see if the event works (as the QML Keys Element [
http://doc.qt.io/qt-5/qml-qtquick-keys.html ] ), but it doesn't.

I try using the qml Keys api:

TextArea {
   id: textArea
   EnterKey.onClicked: console.log("EnterKey.onClicked")
   Key.onEnterPressed: console.log("Key.onEnterPressed")
   Key.onPressed: console.log("Key.onPressed")
}

But doesn't work, the only signal fired is EnterKey.onClicked.

In addition, my idea is to allow the user to input enters by using shift
and then the enter key, is there a way in order to achieve this?.

Any help is appreciated! =)
Thanks in advance!

-- 
Nicolas Cisco
www.nckweb.com.ar
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] TextArea | Using EnterKey.onClicked

2015-02-05 Thread Nicolas Cisco
In the previous email, I transcribed wrongly the qml keys example. The
correct example is:

TextArea {
   id: textArea
   EnterKey.onClicked: console.log("EnterKey.onClicked")
   Keys.onEnterPressed: console.log("Keys.onEnterPressed")
   Keys.onPressed: console.log("Keys.onPressed")
}

(I forgot to put the 's' in "Keys", anyways, it doesn't work, signals are
not fired)

2015-02-05 20:11 GMT-03:00 Nicolas Cisco :

> Hi,
> I'm using the EnterKey.onClicked in a TextArea, the problem is that if I
> retrieve the text area's text in the callback function, it has a trailing
> newline (the enter input). Is there a way to prevent the enter key?. I
> though of striping the enterkey by hand in the callback like `textArea.text
> = textArea.text.slice(0, -1)`, but, the problem is that if you are not in
> the end of the input this doesn't work.
>
> The example is simple:
>
> TextArea {
>id: textArea
>EnterKey.onClicked: console.log("my text is: \""+textArea.text+"\"")
> }
>
> I tried to see if the event works (as the QML Keys Element [
> http://doc.qt.io/qt-5/qml-qtquick-keys.html ] ), but it doesn't.
>
> I try using the qml Keys api:
>
> TextArea {
>id: textArea
>EnterKey.onClicked: console.log("EnterKey.onClicked")
>Key.onEnterPressed: console.log("Key.onEnterPressed")
>Key.onPressed: console.log("Key.onPressed")
> }
>
> But doesn't work, the only signal fired is EnterKey.onClicked.
>
> In addition, my idea is to allow the user to input enters by using shift
> and then the enter key, is there a way in order to achieve this?.
>
> Any help is appreciated! =)
> Thanks in advance!
>
> --
> Nicolas Cisco
> www.nckweb.com.ar
>



-- 
Nicolas Cisco
www.nckweb.com.ar
___
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 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