PaulleDemon / tkVideoPlayer

Video player for tkinter.
MIT License
79 stars 25 forks source link

Scale problem #7

Closed Akascape closed 2 years ago

Akascape commented 2 years ago

I got another error in tkVideoPlayer's scaled parameter, when we set scaled to True it works and the video fits with the label size, but I don't want stretching in videos so I set scaled to False but it is giving lots of errors. Can we fit the video on the label with original ratio but with other remaining portions as black/label color? And the set_scaled parameter is also not working.

PaulleDemon commented 2 years ago

@Akascape I have updated the library. Try tkvideoplayer 2.2: https://pypi.org/project/tkvideoplayer/2.2/ . Now I have added the ability to keep the aspect ratio, refer docs here, you can then use tkvideo.config(bg="black") to get a black background. Let me know if you find any issues. Thank you.

Akascape commented 2 years ago

Thanks, its now working properly :)