Author Topic: Win32 GUI - Play any video, control playback (64 bit only for now)  (Read 3930 times)

0 Members and 1 Guest are viewing this topic.

Offline SpriggsySpriggs

  • Forum Resident
  • Posts: 1145
  • Larger than life
    • View Profile
    • GitHub
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 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
« Last Edit: January 24, 2022, 02:26:34 am by SpriggsySpriggs »
Shuwatch!

Offline SpriggsySpriggs

  • Forum Resident
  • Posts: 1145
  • Larger than life
    • View Profile
    • GitHub
Re: Win32 GUI - Play any video, control playback (64 bit only for now)
« Reply #1 on: January 24, 2022, 01:36:22 am »
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.
Shuwatch!

Offline SpriggsySpriggs

  • Forum Resident
  • Posts: 1145
  • Larger than life
    • View Profile
    • GitHub
Re: Win32 GUI - Play any video, control playback (64 bit only for now)
« Reply #2 on: January 24, 2022, 02:12:03 am »
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.
Shuwatch!