MP4 Player & Downloader

Developed or developing a new product in PureBasic? Tell the world about it.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: MP4 Player & Downloader

Post by JHPJHP »

Updated:
- patched a small bug

The problem was noticed after testing the application using the latest version of PureBasic.

NOTES:
All downloads require an access key.
Access key is emailed after a one time $20 CAD donation.
Good for all current and future scripts, programs, and updates.
Last edited by JHPJHP on Tue Aug 31, 2021 6:08 pm, edited 1 time in total.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: MP4 Player & Downloader

Post by JHPJHP »

Updated:
- patched CORS

Cross-Origin Resource Sharing (CORS)
Even though I've setup a Cloudflare Worker script to automatically add the header, due to limitations with the WebGadget, I am currently using a third-party (demo) service to process each request.

NB*: The above method will change if I get around to modifying my Cloudflare Worker script to work with older browsers.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: MP4 Player & Downloader

Post by JHPJHP »

Updated:
- numerous improvements
- modified JavaScript for better stability
- created both x86 and x64 binaries
- squashed a couple small bugs

Note: If downloading the video file is not needed, there is a Player Only mode.

The methods used here for downloading and saving MP4 files were originally written for testing purposes only.
Size constraints have been hard-coded for downloading MP4 files; does not effect video playback.

32 Bit Compiler / Binary: approximately 30 MB maximum file size (greater then 21.9 MB untested).
64 Bit Compiler / Binary: approximately 200 MB maximum file size (greater then 126 MB untested).

Using the 64 Bit version...
Press the [ F2 ] key to open the Select window.
Replace the default URL: https://www.mypurebasicstuff.com/.videos/oceans.mp4 (21.9 MB)
With one of the following:
- https://www.mypurebasicstuff.com/.videos/surfing.mp4 (68.4 MB)
- https://www.mypurebasicstuff.com/.videos/4K.mp4 (126 MB)

NB*: Video playback may stutter while the downloaded file is being saved.

Image
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: MP4 Player & Downloader

Post by JHPJHP »

Updated:
- improved SlideThumbnail Procedure

Slide Thumbnail (F8)
ResizeWindow was used in a loop to animate the window, it's been replaced with ResizeWindowEx.

NB*: Free executables (x86/x64) were updated and can be downloaded from My PureBasic Stuff; see FREE STUFF.
Locked