RSATom / QmlVlc

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

about how to re-play the video in playlist ? #9

Closed kingctan closed 9 years ago

kingctan commented 10 years ago

It seems no re-play function for calling. so I try to stop and then play the video using playlist.but it stopped.

RSATom commented 10 years ago

do you have multiple items in playlist?

kingctan commented 10 years ago

yes, I need maintain a list of MTV and auto play it one by one or re-play one of it sometimes.

RSATom commented 10 years ago

do you need replay after video finish, or at any time?

kingctan commented 10 years ago

yes, any time when playing, will click a button to re-play from beginning of one MTV.

RSATom commented 10 years ago

and if you call .stop() and directly after that .play() it doesn't work? - it's very strange, it should work.

RSATom commented 10 years ago

I think I know the reason... you could try replace

    player().stop( true );

with

    player().stop();

at

https://github.com/RSATom/QmlVlc/blob/master/QmlVlcPlayerProxy.cpp#L172 and https://github.com/RSATom/QmlVlc/blob/master/QmlVlcPlaylist.cpp#L52

RSATom commented 10 years ago

It was a workaround of a bug in libvlc. And it's not good workaround, with many side effects. And I don't like it...

RSATom commented 9 years ago

async stop removed