Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

stop playlist failed when onMediaPlayerEndReached. #70

Open
kingctan opened this issue Mar 30, 2017 · 5 comments
Open

stop playlist failed when onMediaPlayerEndReached. #70

kingctan opened this issue Mar 30, 2017 · 5 comments

Comments

@kingctan
Copy link

kingctan commented Mar 30, 2017

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
Copy link
Owner

RSATom commented Mar 30, 2017

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
Copy link
Author

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
Copy link
Author

kingctan commented Mar 30, 2017

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

@RSATom
Copy link
Owner

RSATom commented Mar 30, 2017

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
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants