Skip to content

PaulleDemon/tkVideoPlayer

Repository files navigation

TkVideoplayer

This is a simple library to play video files in tkinter. This library also provides the ability to play, pause, skip and seek to specific timestamps.

Example:

import tkinter as tk
from tkVideoPlayer import TkinterVideo

root = tk.Tk()

videoplayer = TkinterVideo(master=root, scaled=True)
videoplayer.load(r"samplevideo.mp4")
videoplayer.pack(expand=True, fill="both")

videoplayer.play() # play the video

root.mainloop()

read the documentation here

you can easily integrate this with CustomTkinter as well: refer How to integrate with CustomTkinter?

Please immediately upgrade to the latest version if you are using version 1.3 or below

Sample video player made using tkVideoPlayer:

Sample player

Note the above is a video player made using this library. The UI doens't come along with the library. Refer example on how to build the video player here

Other libraries you might be interested in: