Re: [Interest] mediaplayer or soundeffect

2016-03-19 Thread Sina Dogru
What about to using loops

property?

2016-03-19 20:57 GMT+02:00 Kevin Mcintyre :

> added the following conditional MediaPlayer
> if ( mediaPlayer.availability == 0 && mediaPlayer.playbackState  == 0) {
> //only play here/
> }
>
> On Fri, Mar 18, 2016 at 4:54 PM, Kevin Mcintyre  wrote:
>
>> Hello - First time posting to QT mailing list so forgive me if this is
>> the wrong channel.
>>
>> I have a simple QML application listening on a websocket, and want to
>> play a chime on message.
>>
>> Initially I tried SoundEffect but my wav file didn't play correctly, so I
>> opted for MediaPlayer which works, but I'm looking for how to replay the
>> same source more than once.
>>
>> Been messing with MediaPlayer.availability and onPlaybackStateChanged
>> and seek but can't seem to get consistent behavior.
>>
>> Any pointers on mediaplayer replay would be very much appreciated.
>>
>> Qt Creator 5.5.
>>
>>
>>
>
> ___
> Interest mailing list
> Interest@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] mediaplayer or soundeffect

2016-03-19 Thread Kevin Mcintyre
added the following conditional MediaPlayer
if ( mediaPlayer.availability == 0 && mediaPlayer.playbackState  == 0) {
//only play here/
}

On Fri, Mar 18, 2016 at 4:54 PM, Kevin Mcintyre  wrote:

> Hello - First time posting to QT mailing list so forgive me if this is the
> wrong channel.
>
> I have a simple QML application listening on a websocket, and want to play
> a chime on message.
>
> Initially I tried SoundEffect but my wav file didn't play correctly, so I
> opted for MediaPlayer which works, but I'm looking for how to replay the
> same source more than once.
>
> Been messing with MediaPlayer.availability and onPlaybackStateChanged and
> seek but can't seem to get consistent behavior.
>
> Any pointers on mediaplayer replay would be very much appreciated.
>
> Qt Creator 5.5.
>
>
>
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] mediaplayer or soundeffect

2016-03-18 Thread Kevin Mcintyre
Hello - First time posting to QT mailing list so forgive me if this is the
wrong channel.

I have a simple QML application listening on a websocket, and want to play
a chime on message.

Initially I tried SoundEffect but my wav file didn't play correctly, so I
opted for MediaPlayer which works, but I'm looking for how to replay the
same source more than once.

Been messing with MediaPlayer.availability and onPlaybackStateChanged and
seek but can't seem to get consistent behavior.

Any pointers on mediaplayer replay would be very much appreciated.

Qt Creator 5.5.
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest