Replies: 1 comment 1 reply
-
I can't tell how slow its running without an reproducible example or video, but the below code did fine on small video clip. import tkinter as tk
from tkVideoPlayer import TkinterVideo
def top():
toplevel = tk.Toplevel(root)
videoplayer2 = TkinterVideo(master=toplevel, scaled=True)
videoplayer2.load(r"test.mp4")
videoplayer2.pack(expand=True, fill="both")
videoplayer2.play() # play the video
root = tk.Tk()
videoplayer = TkinterVideo(master=root, scaled=True)
videoplayer.load(r"test.mp4")
videoplayer.pack(expand=True, fill="both")
videoplayer.play() # play the video
top()
root.mainloop() |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a recommended way to run two instances of the player at once? I have two working, one in a main window and the other in a top level window but they run very slow. Any help would be appreciated
Beta Was this translation helpful? Give feedback.
All reactions