Re: [SailfishDevel] Playing audio on Sailfish (from qrc)

2017-09-27 Thread Zoltán Lutor
Thanks!

On Wednesday, September 27, 2017, Dmitriy Purgin wrote:
> Hey Zoltan,
> 
> the simplest and, I guess, the best way would be to add these packages as
> dependencies to your RPM .yaml like this (see [1] for the full file and
> explanation in [2]):
> 
> # Runtime dependencies which are not automatically detected
> Requires:
>   - qt5-qtmultimedia-plugin-audio-pulseaudio
>   - qt5-qtmultimedia-plugin-mediaservice-gstmediaplayer
> 
> With these lines your RPM will automatically install the dependencies on
> both emulator and device targets.
> 
> Another way to do it would be to log in as root to the emulator using
> instructions in [3] and install the packages with zypper or
> pkcon---whichever is used in the emulator these days.
> 
> # pkcon install qt5-qtmultimedia-plugin-audio-pulseaudio
> qt5-qtmultimedia-plugin-mediaservice-gstmediaplayer
> 
> or
> 
> # zypper install qt5-qtmultimedia-plugin-audio-pulseaudio
> qt5-qtmultimedia-plugin-mediaservice-gstmediaplayer
> 
> 
> 
> Cheers
> Dmitriy
> 
> [1] https://github.com/dpurgin/harbour-callrecorder/blob/master/rpm/harbour-
> callrecorder.yaml#L49-L50
> [2] https://sailfishos.org/wiki/Application_SDK_Packaging_Apps
> [3]
> https://sailfishos.org/wiki/Application_SDK_FAQ#How_do_I_login_into_the_emulator_or_build_engine.3F
> 
> 
> On Wed, Sep 27, 2017 at 9:51 AM, Zoltán Lutor 
> wrote:
> 
> > Hi Dmitry,
> >
> > Could you give me some hints how to do it?
> >
> > I have to admit I have almost zero experience in in this domain...
> >
> > Thx,
> >
> > Zoltan
> >
> > On Tuesday, September 26, 2017, Dmitriy Purgin wrote:
> > > Hi Zoltan,
> > >
> > > You should install the media backend for QtMultimedia in the emulator.
> > Try
> > > installing qt5-qtmultimedia-plugin-mediaservice-gstmediaplayer and/or
> > > qt5-qtmultimedia-plugin-audio-pulseaudio.
> > >
> > > Cheers
> > > Dmitriy
> > >
> > > On Tue, Sep 26, 2017 at 10:48 PM, Zoltán Lutor 
> > > wrote:
> > >
> > > > as pointed out @Together.com
> > > >  > issues-on-sailfish/>,
> > > > no issues on real divice, QML Audio works - but emulator gives this
> > warning
> > > > (and no sound)...
> > > >
> > > >
> > > >  > =link_campaign=sig-email_content=webmail_term=icon>
> > Virus-free.
> > > > www.avast.com
> > > >  > =link_campaign=sig-email_content=webmail_term=link>
> > > > <#m_-105307394941318761_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> > > >
> > > > 2017-09-25 21:06 GMT+02:00 Zoltán Lutor :
> > > >
> > > >> not really...
> > > >>
> > > >> I can recall there were some issues from playing audio from qrc -
> > maybe
> > > >> with 5.6 - but I do not remember the details...
> > > >>
> > > >> Anyway, what is the preferred way to play audio in Sailfish?
> > > >>
> > > >> Br,
> > > >>
> > > >> Zoltan
> > > >>
> > > >>
> > > >> 2017-09-25 17:54 GMT+02:00 Tone Kastlunger  > >:
> > > >>
> > > >>> Have you tried against vanilla 5.6 qt?
> > > >>>
> > > >>> On Mon, Sep 25, 2017 at 6:38 PM, Zoltán Lutor <
> > zoltan.lu...@gmail.com>
> > > >>> wrote:
> > > >>>
> > >  HI,
> > > 
> > >  I'm porting our game
> > >   > nmobile.goobleinvasion=en>
> > >  from Android to Sailfish and faced one issue: game audio does not
> > play.
> > > 
> > >  [W] unknown:0 - defaultServiceProvider::requestService(): no
> > service
> > >  found for - "org.qt-project.qt.mediaplayer"
> > > 
> > >  Solution was OK on Android with Qt 5.9:
> > http://doc.qt.io/qt-5/qml-qtmu
> > >  ltimedia-audio.html
> > >  Any suggestion/working example?
> > > 
> > >  Br,
> > > 
> > >  Zoltan@FORFICTIONmobile
> > > 
> > > 
> > > 
> > >  ___
> > >  SailfishOS.org Devel mailing list
> > >  To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
> > >  shos.org
> > > 
> > > >>>
> > > >>>
> > > >>> ___
> > > >>> SailfishOS.org Devel mailing list
> > > >>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
> > > >>> shos.org
> > > >>>
> > > >>
> > > >>
> > > >
> > > > ___
> > > > SailfishOS.org Devel mailing list
> > > > To unsubscribe, please send a mail to devel-unsubscribe@lists.
> > > > sailfishos.org
> > > >
> > >
> > ___
> > SailfishOS.org Devel mailing list
> > To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
> > shos.org
> >
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Playing audio on Sailfish (from qrc)

2017-09-27 Thread Dmitriy Purgin
Hey Zoltan,

the simplest and, I guess, the best way would be to add these packages as
dependencies to your RPM .yaml like this (see [1] for the full file and
explanation in [2]):

# Runtime dependencies which are not automatically detected
Requires:
  - qt5-qtmultimedia-plugin-audio-pulseaudio
  - qt5-qtmultimedia-plugin-mediaservice-gstmediaplayer

With these lines your RPM will automatically install the dependencies on
both emulator and device targets.

Another way to do it would be to log in as root to the emulator using
instructions in [3] and install the packages with zypper or
pkcon---whichever is used in the emulator these days.

# pkcon install qt5-qtmultimedia-plugin-audio-pulseaudio
qt5-qtmultimedia-plugin-mediaservice-gstmediaplayer

or

# zypper install qt5-qtmultimedia-plugin-audio-pulseaudio
qt5-qtmultimedia-plugin-mediaservice-gstmediaplayer



Cheers
Dmitriy

[1] https://github.com/dpurgin/harbour-callrecorder/blob/master/rpm/harbour-
callrecorder.yaml#L49-L50
[2] https://sailfishos.org/wiki/Application_SDK_Packaging_Apps
[3]
https://sailfishos.org/wiki/Application_SDK_FAQ#How_do_I_login_into_the_emulator_or_build_engine.3F


On Wed, Sep 27, 2017 at 9:51 AM, Zoltán Lutor 
wrote:

> Hi Dmitry,
>
> Could you give me some hints how to do it?
>
> I have to admit I have almost zero experience in in this domain...
>
> Thx,
>
> Zoltan
>
> On Tuesday, September 26, 2017, Dmitriy Purgin wrote:
> > Hi Zoltan,
> >
> > You should install the media backend for QtMultimedia in the emulator.
> Try
> > installing qt5-qtmultimedia-plugin-mediaservice-gstmediaplayer and/or
> > qt5-qtmultimedia-plugin-audio-pulseaudio.
> >
> > Cheers
> > Dmitriy
> >
> > On Tue, Sep 26, 2017 at 10:48 PM, Zoltán Lutor 
> > wrote:
> >
> > > as pointed out @Together.com
> > >  issues-on-sailfish/>,
> > > no issues on real divice, QML Audio works - but emulator gives this
> warning
> > > (and no sound)...
> > >
> > >
> > >  =link_campaign=sig-email_content=webmail_term=icon>
> Virus-free.
> > > www.avast.com
> > >  =link_campaign=sig-email_content=webmail_term=link>
> > > <#m_-105307394941318761_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> > >
> > > 2017-09-25 21:06 GMT+02:00 Zoltán Lutor :
> > >
> > >> not really...
> > >>
> > >> I can recall there were some issues from playing audio from qrc -
> maybe
> > >> with 5.6 - but I do not remember the details...
> > >>
> > >> Anyway, what is the preferred way to play audio in Sailfish?
> > >>
> > >> Br,
> > >>
> > >> Zoltan
> > >>
> > >>
> > >> 2017-09-25 17:54 GMT+02:00 Tone Kastlunger  >:
> > >>
> > >>> Have you tried against vanilla 5.6 qt?
> > >>>
> > >>> On Mon, Sep 25, 2017 at 6:38 PM, Zoltán Lutor <
> zoltan.lu...@gmail.com>
> > >>> wrote:
> > >>>
> >  HI,
> > 
> >  I'm porting our game
> >   nmobile.goobleinvasion=en>
> >  from Android to Sailfish and faced one issue: game audio does not
> play.
> > 
> >  [W] unknown:0 - defaultServiceProvider::requestService(): no
> service
> >  found for - "org.qt-project.qt.mediaplayer"
> > 
> >  Solution was OK on Android with Qt 5.9:
> http://doc.qt.io/qt-5/qml-qtmu
> >  ltimedia-audio.html
> >  Any suggestion/working example?
> > 
> >  Br,
> > 
> >  Zoltan@FORFICTIONmobile
> > 
> > 
> > 
> >  ___
> >  SailfishOS.org Devel mailing list
> >  To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
> >  shos.org
> > 
> > >>>
> > >>>
> > >>> ___
> > >>> SailfishOS.org Devel mailing list
> > >>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
> > >>> shos.org
> > >>>
> > >>
> > >>
> > >
> > > ___
> > > SailfishOS.org Devel mailing list
> > > To unsubscribe, please send a mail to devel-unsubscribe@lists.
> > > sailfishos.org
> > >
> >
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
> shos.org
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Playing audio on Sailfish (from qrc)

2017-09-27 Thread Zoltán Lutor
Hi Dmitry,

Could you give me some hints how to do it? 

I have to admit I have almost zero experience in in this domain...

Thx,

Zoltan

On Tuesday, September 26, 2017, Dmitriy Purgin wrote:
> Hi Zoltan,
> 
> You should install the media backend for QtMultimedia in the emulator. Try
> installing qt5-qtmultimedia-plugin-mediaservice-gstmediaplayer and/or
> qt5-qtmultimedia-plugin-audio-pulseaudio.
> 
> Cheers
> Dmitriy
> 
> On Tue, Sep 26, 2017 at 10:48 PM, Zoltán Lutor 
> wrote:
> 
> > as pointed out @Together.com
> > ,
> > no issues on real divice, QML Audio works - but emulator gives this warning
> > (and no sound)...
> >
> >
> > 
> >  Virus-free.
> > www.avast.com
> > 
> > <#m_-105307394941318761_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> >
> > 2017-09-25 21:06 GMT+02:00 Zoltán Lutor :
> >
> >> not really...
> >>
> >> I can recall there were some issues from playing audio from qrc - maybe
> >> with 5.6 - but I do not remember the details...
> >>
> >> Anyway, what is the preferred way to play audio in Sailfish?
> >>
> >> Br,
> >>
> >> Zoltan
> >>
> >>
> >> 2017-09-25 17:54 GMT+02:00 Tone Kastlunger :
> >>
> >>> Have you tried against vanilla 5.6 qt?
> >>>
> >>> On Mon, Sep 25, 2017 at 6:38 PM, Zoltán Lutor 
> >>> wrote:
> >>>
>  HI,
> 
>  I'm porting our game
>  
>  from Android to Sailfish and faced one issue: game audio does not play.
> 
>  [W] unknown:0 - defaultServiceProvider::requestService(): no service
>  found for - "org.qt-project.qt.mediaplayer"
> 
>  Solution was OK on Android with Qt 5.9: http://doc.qt.io/qt-5/qml-qtmu
>  ltimedia-audio.html
>  Any suggestion/working example?
> 
>  Br,
> 
>  Zoltan@FORFICTIONmobile
> 
> 
> 
>  ___
>  SailfishOS.org Devel mailing list
>  To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
>  shos.org
> 
> >>>
> >>>
> >>> ___
> >>> SailfishOS.org Devel mailing list
> >>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
> >>> shos.org
> >>>
> >>
> >>
> >
> > ___
> > SailfishOS.org Devel mailing list
> > To unsubscribe, please send a mail to devel-unsubscribe@lists.
> > sailfishos.org
> >
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Playing audio on Sailfish (from qrc)

2017-09-26 Thread Dmitriy Purgin
Hi Zoltan,

You should install the media backend for QtMultimedia in the emulator. Try
installing qt5-qtmultimedia-plugin-mediaservice-gstmediaplayer and/or
qt5-qtmultimedia-plugin-audio-pulseaudio.

Cheers
Dmitriy

On Tue, Sep 26, 2017 at 10:48 PM, Zoltán Lutor 
wrote:

> as pointed out @Together.com
> ,
> no issues on real divice, QML Audio works - but emulator gives this warning
> (and no sound)...
>
>
> 
>  Virus-free.
> www.avast.com
> 
> <#m_-105307394941318761_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>
> 2017-09-25 21:06 GMT+02:00 Zoltán Lutor :
>
>> not really...
>>
>> I can recall there were some issues from playing audio from qrc - maybe
>> with 5.6 - but I do not remember the details...
>>
>> Anyway, what is the preferred way to play audio in Sailfish?
>>
>> Br,
>>
>> Zoltan
>>
>>
>> 2017-09-25 17:54 GMT+02:00 Tone Kastlunger :
>>
>>> Have you tried against vanilla 5.6 qt?
>>>
>>> On Mon, Sep 25, 2017 at 6:38 PM, Zoltán Lutor 
>>> wrote:
>>>
 HI,

 I'm porting our game
 
 from Android to Sailfish and faced one issue: game audio does not play.

 [W] unknown:0 - defaultServiceProvider::requestService(): no service
 found for - "org.qt-project.qt.mediaplayer"

 Solution was OK on Android with Qt 5.9: http://doc.qt.io/qt-5/qml-qtmu
 ltimedia-audio.html
 Any suggestion/working example?

 Br,

 Zoltan@FORFICTIONmobile



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

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

Re: [SailfishDevel] Playing audio on Sailfish (from qrc)

2017-09-26 Thread Zoltán Lutor
as pointed out @Together.com
,
no issues on real divice, QML Audio works - but emulator gives this warning
(and no sound)...


Virus-free.
www.avast.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

2017-09-25 21:06 GMT+02:00 Zoltán Lutor :

> not really...
>
> I can recall there were some issues from playing audio from qrc - maybe
> with 5.6 - but I do not remember the details...
>
> Anyway, what is the preferred way to play audio in Sailfish?
>
> Br,
>
> Zoltan
>
>
> 2017-09-25 17:54 GMT+02:00 Tone Kastlunger :
>
>> Have you tried against vanilla 5.6 qt?
>>
>> On Mon, Sep 25, 2017 at 6:38 PM, Zoltán Lutor 
>> wrote:
>>
>>> HI,
>>>
>>> I'm porting our game
>>> 
>>> from Android to Sailfish and faced one issue: game audio does not play.
>>>
>>> [W] unknown:0 - defaultServiceProvider::requestService(): no service
>>> found for - "org.qt-project.qt.mediaplayer"
>>>
>>> Solution was OK on Android with Qt 5.9: http://doc.qt.io/qt-5/qml-qtmu
>>> ltimedia-audio.html
>>> Any suggestion/working example?
>>>
>>> Br,
>>>
>>> Zoltan@FORFICTIONmobile
>>>
>>>
>>>
>>> ___
>>> SailfishOS.org Devel mailing list
>>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
>>> shos.org
>>>
>>
>>
>> ___
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
>> shos.org
>>
>
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Playing audio on Sailfish (from qrc)

2017-09-25 Thread Zoltán Lutor
not really...

I can recall there were some issues from playing audio from qrc - maybe
with 5.6 - but I do not remember the details...

Anyway, what is the preferred way to play audio in Sailfish?

Br,

Zoltan


2017-09-25 17:54 GMT+02:00 Tone Kastlunger :

> Have you tried against vanilla 5.6 qt?
>
> On Mon, Sep 25, 2017 at 6:38 PM, Zoltán Lutor 
> wrote:
>
>> HI,
>>
>> I'm porting our game
>> 
>> from Android to Sailfish and faced one issue: game audio does not play.
>>
>> [W] unknown:0 - defaultServiceProvider::requestService(): no service
>> found for - "org.qt-project.qt.mediaplayer"
>>
>> Solution was OK on Android with Qt 5.9: http://doc.qt.io/qt-5/qml-qtmu
>> ltimedia-audio.html
>> Any suggestion/working example?
>>
>> Br,
>>
>> Zoltan@FORFICTIONmobile
>>
>>
>>
>> ___
>> SailfishOS.org Devel mailing list
>> To unsubscribe, please send a mail to devel-unsubscribe@lists.sailfi
>> shos.org
>>
>
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe@lists.
> sailfishos.org
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Re: [SailfishDevel] Playing audio on Sailfish (from qrc)

2017-09-25 Thread Tone Kastlunger
Have you tried against vanilla 5.6 qt?

On Mon, Sep 25, 2017 at 6:38 PM, Zoltán Lutor 
wrote:

> HI,
>
> I'm porting our game
> 
> from Android to Sailfish and faced one issue: game audio does not play.
>
> [W] unknown:0 - defaultServiceProvider::requestService(): no service
> found for - "org.qt-project.qt.mediaplayer"
>
> Solution was OK on Android with Qt 5.9: http://doc.qt.io/qt-5/qml-
> qtmultimedia-audio.html
> Any suggestion/working example?
>
> Br,
>
> Zoltan@FORFICTIONmobile
>
>
>
> ___
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe@lists.
> sailfishos.org
>
___
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

[SailfishDevel] Playing audio on Sailfish (from qrc)

2017-09-25 Thread Zoltán Lutor
HI,

I'm porting our game

from Android to Sailfish and faced one issue: game audio does not play.

[W] unknown:0 - defaultServiceProvider::requestService(): no service found
for - "org.qt-project.qt.mediaplayer"

Solution was OK on Android with Qt 5.9:
http://doc.qt.io/qt-5/qml-qtmultimedia-audio.html
Any suggestion/working example?

Br,

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