QB64.org Forum
Active Forums => Programs => Topic started by: SpriggsySpriggs on January 23, 2022, 11:51:23 pm
-
The code contained in the 7zip file will allow you to play practically any video on your PC using Windows API in QB64. You will also be able to control playback of the video. I currently support play, pause, seek -10 seconds, and seek +30 seconds. It is required that you install the K-Lite Full Codec package (https://codecguide.com/download_k-lite_codec_pack_full.htm) to make sure you can play absolutely any video out there. I feel that @madscijr and @Petr would be most interested in this project.
Here is the source code:
Here are a couple of videos showing the program in action:
If the console is on in the source I have provided, then you can uncomment Console Off.
If I have missed any dependencies then please let me know
-
Fixed a redraw issue by adding SetTimer which allows me to update the window every half second. This will help the trackbar update more often.
-
Fixed an issue with the aspect ratio. Turns out, all the algorithms I found online did not take the title bar into account. Things shouldn't look as squashed now in HD content.