Skip to content

Xiaokang2022/maliang-media

Repository files navigation

maliang-media

https://xiaokang2022.github.io/maliang/

Extension package of maliang to play media files

Version Downloads Total Downloads Size
Watchers Forks Stars Issues Pull Requests Discussions

Insights

Star History Chart

📦 Installation

pip install maliang-media

👀 Preview

Warning

The sample video from: https://github.com/Xiaokang2022/maliang-demos/tree/main/assets/videos. Please note that the video is for testing purposes only and may not be used for commercial purposes!

preview-1

preview-2

import maliang
from maliang import media

root = maliang.Tk(title="maliang-media")
cv = media.VideoCanvas(free_anchor=True, keep_ratio="min", controls=True)
cv.place(width=1280, height=720, x=640, y=360, anchor="center")
cv.open("your_video_file.mp4")
root.mainloop()