[SailfishDevel] any way to force Audio to rebuffer?

2015-11-11 Thread Alexander Ladygin
Hey!

Is there any way to force Audio (QML) to rebuffer while not stopping
playback?
I have a local file which i'm playing with Audio. And i want to start
playing it before i've downloaded it completely.
Right now if i just set source to a local file (which is only partly
downloaded), it will buffer it and will play only buffered part. Every byte
downloaded after won't get buffered.

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

Re: [SailfishDevel] SDK version 1511 (2.0.0) is released

2015-11-11 Thread Alexander Ladygin
Thanks Martin, that helped!

Alex

On Wed, Nov 11, 2015 at 9:09 AM, Martin Kampas 
wrote:

> Hello Alexander,
>
> Design feature (for Sailfish QML components) has been unmaintaned for long
> time and it used to be hidden/disabled by default. In SDK-1511 it was left
> enabled by mistake.
>
> You can hide the design mode by disabling the "Designer" and "QmlDesigner"
> plugin in "About Plugins" dialog if it helps you.
>
> BR,
> Martin
>
> --
> *From:* devel-boun...@lists.sailfishos.org [
> devel-boun...@lists.sailfishos.org] on behalf of Alexander Ladygin [
> fake...@gmail.com]
> *Sent:* Tuesday, November 10, 2015 1:45 PM
> *To:* Sailfish OS Developers
> *Subject:* Re: [SailfishDevel] SDK version 1511 (2.0.0) is released
>
> updated for me just fine!
> Design feature does not work though... should it?
>
> On Tue, Nov 10, 2015 at 3:36 PM, Peter Pykäläinen <
> peter.pykalai...@gmail.com> wrote:
>
>> Hi,
>>
>> Tried to update my version, but SDK updater gives checksum mismatch.
>> Please fix.
>>
>>
>> // Peter Pykäläinen
>>
>> 2015-11-10 13:55 GMT+02:00 Martin Kampas :
>>
>>> Hello again,
>>>
>>> Today (November 10th) at 11:30 UTC we have published new installers and
>>> repositories of the Sailfish OS SDK. This SDK release is called 1511 and
>>> it
>>> matches Jolla Release 2.0.0.
>>>
>>> The installers for this release of the SDK are available at
>>> http://www.sailfishos.org. If you have an older beta release of the SDK,
>>> you should see an update notification in the SailfishOS IDE.
>>>
>>> SDK content matches Jolla Release 2.0.0.10 (Saimaa). Please
>>> see below for detailed information of the changes.
>>>
>>> A couple of things you should be aware of:
>>>
>>> - As before, in this update the build engine, emulator and targets are
>>> reinstalled so you will lose all changes you may have made in those -
>>> However, if your application packaging is done correctly, rebuilding
>>> your projects should reinstall the packages you have been using.
>>>
>>> - Any customization done to SDK (adding new package repositories, adding
>>> custom targets, additional source paths) will be removed during the
>>> installation process so make your own backup of those before starting
>>> the update.
>>>
>>> - If you import existing projects made with a previous version of the
>>> Sailfish OS SDK, make sure to select the correct kit in the project
>>> configuration step. Both ARM and i486 kits are available.
>>>
>>> - Package repository contents have been updated and consequently using a
>>> previous SDK version with these package repositories is not supported.
>>>
>>> - Supported host platforms can be found from:
>>> https://sailfishos.org/develop/sdk-overview/sdk-release-notes/
>>>
>>> - For more information, please see the SDK Beta-Qt5 known issues list
>>> at:
>>> https://sailfishos.org/develop/sdk-overview/sdk-beta-qt5-known-issues/.
>>>
>>> SDK IDE (Qt Creator):
>>> - Qt Creator updated to version 3.5
>>> - Jolla application template now supports application icon in multiple
>>> sizes
>>> - Refreshed API documentation available in the Help mode (Ctrl+7) in Qt
>>> Creator to Jolla release 2.0.0.10 level
>>> - Sailfish Silica API documentation have working table of contents again
>>>
>>> SDK Build engine:
>>> - Build targets refreshed to Jolla release 2.0.0.10 level
>>> - Applications using libsailfishapp can set SAILFISHAPP_ICONS qmake
>>> variable (*) to provide application icon in multiple sizes
>>> - Harbour RPM validator updated
>>>
>>> *) See
>>> https://github.com/sailfish-sdk/libsailfishapp/blob/master/docs/documentation.mdown
>>>
>>> Emulator:
>>> - Emulator packages refreshed to Jolla release 2.0.0.10 level
>>> - Fixed TimePickerDialog appearance in Components Gallery
>>>
>>> If you have any questions, feel free to either send an email to this
>>> mailing list: mailto:devel at lists.sailfishos.org, write it up in
>>> http://together.jolla.com  and tag your issue with 'sdk' or send an
>>> e-mail to developer-care at jolla.com.
>>>
>>> Happy hacking,
>>> Jolla SDK Team
>>>
>>>
>>> ___
>>> 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
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] QNetworkAccessManager is losing connection upon switching between wifi and mobile

2015-11-11 Thread Lorn Potter
Hi Alex,

Having tested this, it does seem to be a bug in that when connecting to wlan, 
QNAM’s networkAccessibility sometimes will go to NotAccessible, but then go to 
Accessible when wlan connects. or sometimes it won’t even go to NotAccessible 
then Accessible when wlan is connected.

You should be able to track QNAM through its networkAccessibilty property. it 
should follow the online state, unless you specifically set it to NotAccessible.

QNAM uses QNetworkConfiguration internally, and it should automatically switch 
this to the current Active configuration.


-
Lorn

> On 10 Nov 2015, at 10:37 am, Alexander Ladygin  wrote:
> 
> Hey!
> 
> I've got an issue: QNetworkAccessManager is losing connection upon switching 
> between wifi and mobile:( What exactly should i do/update to make it work 
> properly? Maybe need to change network configuration? Why it is not handled 
> by platform?
> Thanks.
> 
> Alex
> ___
> 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] Planning for next SailfishOS community meeting 19.11.2015

2015-11-11 Thread Bob Summerwill
I've also just realized that I may not be able to attend that community
meeting now that I am back on the West Coast of Canada, because it will be
at 6.30am in my timezone.Would somebody else like to "take over" that
point from me, who will definitely be able to make it?

I think there are many people who would just appreciate a blog post about
the open sourcing plan.

How about a blog post published at some point prior to next week's meeting,
and then a discussion about that plan in the community meeting?   Many
people are unable to attend the meetings anyway - if not due to their
timezone like me, then because of work or other commitments.


On Wed, Nov 4, 2015 at 12:21 PM, Bob Summerwill  wrote:

> Seconded.
>
> Blog posting would be just fine.The request is simple and clear, and
> isn't new.
>
> "What's the plan?" :-)
>
> On Wed, Nov 4, 2015 at 6:56 AM, Alexander Ivash 
> wrote:
>
>> Hi,
>>
>> Ok, community meeting was delayed, but is it possible to get at least
>> some info on 'Request more information on Roadmap for open-sourcing more of
>> Sailfish' (for example as the short blog post on blog.jolla.com) ? This
>> is not the topic for the discussion but rather just query for information.
>>
>> Regards, Alexander
>>
>> 2015-11-04 15:25 GMT+03:00 Iekku Pylkka :
>>
>>> Ahoy,
>>>
>>>
>>>
>>> Sorry for short notice, but we will delay next community meeting until
>>> Thursday 19.11. because of lacking of topics and internal preparations for
>>> Slush 2015.
>>>
>>>
>>>
>>> First proposed topic ‘upgrading xdg-utils in mer to master’ has gone
>>> forward, see more from:
>>> https://together.jolla.com/question/110408/xdg-open-no-longer-working/
>>>
>>>
>>>
>>> Please remember to add topics to the agenda before Monday 16.11 at
>>> https://together.jolla.com/question/54157/sailfishos-open-source-collaboration-meeting-planning/
>>>
>>>
>>>
>>> Thanks!
>>>
>>>   Iekku
>>>
>>>
>>>
>>>
>>>
>>> ___
>>> 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
>>
>
>
>
> --
> b...@summerwill.net
>
>


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

Re: [SailfishDevel] QNetworkAccessManager is losing connection upon switching between wifi and mobile

2015-11-11 Thread Lorn Potter

> On 11 Nov 2015, at 8:09 pm, Lorn Potter  wrote:
> 
> Hi Alex,
> 
> Having tested this, it does seem to be a bug in that when connecting to wlan

I should have specified here when already connected to mobile data and then 
connecting to wlan without first disconnecting mobile data.


> , QNAM’s networkAccessibility sometimes will go to NotAccessible, but then go 
> to Accessible when wlan connects. or sometimes it won’t even go to 
> NotAccessible then Accessible when wlan is connected.
> 
> You should be able to track QNAM through its networkAccessibilty property. it 
> should follow the online state, unless you specifically set it to 
> NotAccessible.
> 
> QNAM uses QNetworkConfiguration internally, and it should automatically 
> switch this to the current Active configuration.
> 
> 
> -
> Lorn
> 
>> On 10 Nov 2015, at 10:37 am, Alexander Ladygin  wrote:
>> 
>> Hey!
>> 
>> I've got an issue: QNetworkAccessManager is losing connection upon switching 
>> between wifi and mobile:( What exactly should i do/update to make it work 
>> properly? Maybe need to change network configuration? Why it is not handled 
>> by platform?
>> Thanks.
>> 
>> Alex
>> ___
>> 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] QNetworkAccessManager is losing connection upon switching between wifi and mobile

2015-11-11 Thread Alexander Ladygin
Hei Lorn

I probably didn't make myself clear =(
1) wifi is turned on
2) app is launched, i can download files with QNAM
3) app is still launched, i turn off the wifi (mobile network activated)
4) i can no longer download any files. No network errors, but QNAM's reply
returns empty files
5) turn the wifi back on - i can download files

When wifi is turned off, i've tried:
1) creating new instance: _pManager = new QNetworkAccessManager(this);
2) clearing access cache: _pManager->clearAccessCache();
3) updating network configuration: _configManager.updateConfigurations()
and then

QList activeConfigs =
_configManager.allConfigurations(QNetworkConfiguration::Active);
if (activeConfigs.count() > 0) {
_pManager->setConfiguration(activeConfigs.at(0));
qDebug() << "QNetworkConfiguration = " << activeConfigs.at(0).name();
}
In that case qDebug shows that active configuration is, indeed, mobile
network

But nothing helped. Only restarting app helps

Maybe you can look at sources, if you have couple of spare minutes
https://github.com/virgi26/harbour-vk-music/blob/master/src/downloadmanager.cpp
Thank you for your time.

Alex.


On Wed, Nov 11, 2015 at 1:13 PM, Lorn Potter  wrote:

>
> > On 11 Nov 2015, at 8:09 pm, Lorn Potter  wrote:
> >
> > Hi Alex,
> >
> > Having tested this, it does seem to be a bug in that when connecting to
> wlan
>
> I should have specified here when already connected to mobile data and
> then connecting to wlan without first disconnecting mobile data.
>
>
> > , QNAM’s networkAccessibility sometimes will go to NotAccessible, but
> then go to Accessible when wlan connects. or sometimes it won’t even go to
> NotAccessible then Accessible when wlan is connected.
> >
> > You should be able to track QNAM through its networkAccessibilty
> property. it should follow the online state, unless you specifically set it
> to NotAccessible.
> >
> > QNAM uses QNetworkConfiguration internally, and it should automatically
> switch this to the current Active configuration.
> >
> >
> > -
> > Lorn
> >
> >> On 10 Nov 2015, at 10:37 am, Alexander Ladygin 
> wrote:
> >>
> >> Hey!
> >>
> >> I've got an issue: QNetworkAccessManager is losing connection upon
> switching between wifi and mobile:( What exactly should i do/update to make
> it work properly? Maybe need to change network configuration? Why it is not
> handled by platform?
> >> Thanks.
> >>
> >> Alex
> >> ___
> >> 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

Re: [SailfishDevel] QNetworkAccessManager is losing connection upon switching between wifi and mobile

2015-11-11 Thread Alexander Ladygin
I've added some debugging. Strangely i'm not actually getting any errors,
but when i try to download a file (that's the sole purpose of QNAM in my
app), i'm getting an empty one. Any thoughts?
PS if close my app and open it again it downloads same file with same url
without any problems whatsoever.

Alex

On Wed, Nov 11, 2015 at 3:36 AM, Aaron McCarthy 
wrote:

> Hi,
>
> On Tue, 10 Nov 2015 11:07:51 Alexander Ladygin wrote:
> > but how exactly can i make disconnect? All the network requests i send
> with
> > QNetworkAccessManager after switching to mobile are returned with errors
> =(
>
> What errors are being returned? Are you explicitly setting a network
> configuration or relying on QNAM default behaviour? What online state is
> QNAM
> reporting when the errors occur?
>
> Cheers,
>
> --
> Aaron McCarthy
> ___
> 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] QNetworkAccessManager is losing connection upon switching between wifi and mobile

2015-11-11 Thread Lorn Potter

> On 12 Nov 2015, at 9:50 am, Aaron McCarthy  wrote:
> 
> Hi,
> 
> On Wed, 11 Nov 2015 16:20:11 Alexander Ladygin wrote:
>> I probably didn't make myself clear =(
>> 1) wifi is turned on
>> 2) app is launched, i can download files with QNAM
>> 3) app is still launched, i turn off the wifi (mobile network activated)
>> 4) i can no longer download any files. No network errors, but QNAM's reply
>> returns empty files
> 
> Does the reply emit the finished() signal? I ask because I would expect the 
> reply to either finish with an error or hang attempting to use the previous 
> connection.
> 
> You could try using tcpdump or strace to check what QNAM is actually doing at 
> the socket level. It might give more of a clue as to what is going wrong.
> 

It’s not at that level.

I’ve been working on this today. I haven’t created a bug about it yet.

There are a few things going on in QNAM with regards to it’s NetworkSession and 
timing of when configurations become active and non active.

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

Re: [SailfishDevel] QNetworkAccessManager is losing connection upon switching between wifi and mobile

2015-11-11 Thread Aaron McCarthy
Hi,

On Wed, 11 Nov 2015 16:20:11 Alexander Ladygin wrote:
> I probably didn't make myself clear =(
> 1) wifi is turned on
> 2) app is launched, i can download files with QNAM
> 3) app is still launched, i turn off the wifi (mobile network activated)
> 4) i can no longer download any files. No network errors, but QNAM's reply
> returns empty files

Does the reply emit the finished() signal? I ask because I would expect the 
reply to either finish with an error or hang attempting to use the previous 
connection.

You could try using tcpdump or strace to check what QNAM is actually doing at 
the socket level. It might give more of a clue as to what is going wrong.

Cheers,

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


Re: [SailfishDevel] Help,,,SDK don't love my jolla phone

2015-11-11 Thread Martin Kampas
oops you are right, 2.0.0.x is still OK, this only comes with 2.0.1.x.
-Martin

From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] 
on behalf of Tone Kastlunger [users.giulie...@gmail.com]
Sent: Wednesday, November 11, 2015 7:59 AM
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] Help,,,SDK don't love my jolla phone

Funny; i've been on 1510 for a month now, no issues with 2.0.0.10?

On Wed, Nov 11, 2015 at 8:25 AM, Martin Kampas 
> wrote:
Hello yinweijianyinweijian,

If your SailfishOS version is 2.0.0 and your SDK is 1510 then this is most 
probably due to SSH incompatibility after dropping support for the unsafe 
aes128-cbc cipher from the phone.

Upgrading to SDK-1511 (released yesterday November 10th) should fix this for 
you.

BR,
Martin


From: 
devel-boun...@lists.sailfishos.org 
[devel-boun...@lists.sailfishos.org] 
on behalf of yinweijianyinweijian 
[iamyinweij...@outlook.com]
Sent: Wednesday, November 11, 2015 2:36 AM
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] Help,,,SDK don't love my jolla phone

Hello ,Recently,I can't connect my jolla with the latest SDK,something happened 
just like Pictures.
I set anything well,like "open developer model ","set password or auto get 
password","recover jolla","reset SDK"... but nothing happend.
A long time ago it can work.,but now,it "sleep".My computer system is 
WIN7&64bit,can you help me?Thanks[Emoji]

___
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] Help,,,SDK don't love my jolla phone

2015-11-11 Thread Martin Kampas
Hello yinweijianyinweijian,

only now I noticed in your configuration SSH port is set to 2223 - this should 
be 22 unless you changed your phone settings somehow.

BR,
Martin


From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] 
on behalf of Martin Kampas [martin.kam...@jolla.com]
Sent: Wednesday, November 11, 2015 9:04 AM
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] Help,,,SDK don't love my jolla phone

oops you are right, 2.0.0.x is still OK, this only comes with 2.0.1.x.
-Martin

From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] 
on behalf of Tone Kastlunger [users.giulie...@gmail.com]
Sent: Wednesday, November 11, 2015 7:59 AM
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] Help,,,SDK don't love my jolla phone

Funny; i've been on 1510 for a month now, no issues with 2.0.0.10?

On Wed, Nov 11, 2015 at 8:25 AM, Martin Kampas 
> wrote:
Hello yinweijianyinweijian,

If your SailfishOS version is 2.0.0 and your SDK is 1510 then this is most 
probably due to SSH incompatibility after dropping support for the unsafe 
aes128-cbc cipher from the phone.

Upgrading to SDK-1511 (released yesterday November 10th) should fix this for 
you.

BR,
Martin


From: 
devel-boun...@lists.sailfishos.org 
[devel-boun...@lists.sailfishos.org] 
on behalf of yinweijianyinweijian 
[iamyinweij...@outlook.com]
Sent: Wednesday, November 11, 2015 2:36 AM
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] Help,,,SDK don't love my jolla phone

Hello ,Recently,I can't connect my jolla with the latest SDK,something happened 
just like Pictures.
I set anything well,like "open developer model ","set password or auto get 
password","recover jolla","reset SDK"... but nothing happend.
A long time ago it can work.,but now,it "sleep".My computer system is 
WIN7&64bit,can you help me?Thanks[Emoji]

___
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