RSATom / QmlVlc

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

stop playlist failed when onMediaPlayerEndReached. #70

Open kingctan opened 7 years ago

kingctan commented 7 years ago
onMediaPlayerEndReached: {
                    console.log("zzzzxxxxxxxxxxcccccccccccccbbbbbbbbb2222222222222222222");
                    vlcPlayer.playlist.stop()

                }

vlcPlayer.playlist.stop() not work in this snippet, and the vlcplayer will continue play next. I want to pause the playing 10s after one video end. and then continue playing. How to fix it? Thanks a lot.

RSATom commented 7 years ago

Don't sure if it will work, but you could use timer with repeat: false and interval set to some very small value, and do stop in onTriggered. Other option could be use Single playlist mode. In this case playlist will not automatically advance to next item.

kingctan commented 7 years ago

yes, I use timer with interval 10s. but it not work. onMediaPlayerEndReached event triggered, then auto play next, pause or stop both not work. Thanks.

kingctan commented 7 years ago

And the Single will not loop to beginning when last one end. so its not meet our requirement. ^_^

RSATom commented 7 years ago

yes, I use timer with interval 10s. but it not work.

Then maybe it's a bug... but don't sure when I will have time to fix it....

And the Single will not loop to beginning when last one end. so its not meet our requirement. ^_^

Yes, in Single mode you have to implement full playlist items switch logic.

kingctan commented 7 years ago

ok, many thanks, hope it will be fix asap. ^_^