Skip to content

VideoInfo from Video Player Returns 0 for everything #41

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

You must be logged in to vote

Hey sorry for the late reply. Didn't receive a notification. Coming to your question. You are trying to get the video details before it has a chance to get the video information I'd suggest that you listen to <<Duration>> event to know if the video info has been loaded, then display it.
eg:

videoplayer.bind("<<Duration>", lambda e: videoplayer.video_info())

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
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