Skip to content

.stop and .play method in the same function #14

Answered by PaulleDemon
depayem4 asked this question in Q&A
Discussion options

You must be logged in to vote

@depayem4 You don't need to use the stop function when making use of the load function, as it implicitly calls the stop function. It automatically stops and then loads the new video.

To correct your error add videoplayer.after(1000, videoplayer.play) instead of videoplayer.play() as this will give time for thread to stop playing the old video and load another one.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@depayem4
Comment options

@PaulleDemon
Comment options

Answer selected by PaulleDemon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #12 on July 19, 2022 09:30.