RSATom / QmlVlc

[ABANDONED] libvlc wrapper for Qt Quick 2/Qml
Other
139 stars 56 forks source link

Hi, which event will be fired when playlist play the next one or the previous one? #8

Closed kingctan closed 10 years ago

kingctan commented 10 years ago

which event will be fired when playlist play the next one or the previous one. I want to do something while play next or previous.

RSATom commented 10 years ago

MediaPlayerMediaChanged, but it will fire on any media change

kingctan commented 10 years ago

ok, thank you. and any event on play finished? seems I can't find it.

RSATom commented 10 years ago

MediaPlayerEndReached or MediaPlayerEncounteredError

All available signals: https://github.com/RSATom/QmlVlc/blob/master/QmlVlcPlayerProxy.h#L107

kingctan commented 10 years ago

meet a error when add MediaPlayerMediaChanged,MediaPlayerEndReached ,MediaPlayerEncounteredError: info below:

main.qml:52:9 Cannot assign to non-existent property "onMediaPlayerMediaChanged"
RSATom commented 10 years ago

try without "on"

kingctan commented 10 years ago

the same as above.

RSATom commented 10 years ago

it seems it's a bug, will fix it today.

RSATom commented 10 years ago

I think I just don't follow signals naming convention. If you wish, you could try replace first letter in signal name with lower case letter (in QmlVlcPlayerProxy.h)

kingctan commented 10 years ago

ok, having a try.

RSATom commented 10 years ago

fixed with f9596dd0354bfe9229784f162b4afd9ff2448fb6

kingctan commented 10 years ago

OK. thanks.

RSATom commented 10 years ago

Check it please, and if now it's working good, please close this issue. Thanks!

kingctan commented 10 years ago

it works now. and I have another problem if should begin another issue? it is about re-play video. ^_^ OK, I'll open another one.

Thank you!