YouTube 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: YouTube Player

Post by JHPJHP »

Updated:
- added extended video access
- added additional search & command parameters
- updated the shortcut menu [ F1 ]
- added redirect option [ F10 ]
Last edited by JHPJHP on Wed Sep 25, 2019 2:39 pm, edited 1 time in total.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: YouTube Player

Post by JHPJHP »

Updated:
- updated the [ F1 ] Shortcut menu
- removed the [ F2 ] Full Screen Shortcut key
- switched the [ F3 ] Search Window Shortcut key to [ F2 ]
- added back the On Screen Display (OSD) Full Screen icon
-- the YouTube player Full Screen icon now controls the PureBasic window
-- double-clicking the window also toggles the Full Screen display on / off

NB*: Included a JavaScript event listener and function that can react to changes to the document title.
- document title can be changed from PureBasic using (DOM) existing code

------------------------------------------------------------

Updated:
- squashed some bugs and cleaned up the code a bit
- the DIV menus are no longer viewable from Full Screen

NOTE: While the Shortcut Menu cannot be viewed in Full Screen, there is a simple fix, but it would require writing custom controls.
- could also be done using an iFrame and some additional DOM calls

NB*: The MP4 Player was also updated.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: HTML5 YouTube Player

Post by JHPJHP »

Updated:
- squashed a bug that would crash the program
- made a couple small changes to the code

Squashed a Bug
Program would crash when reloading the default start video [ F12 ].

NOTE: Create a play-list from the Search Window (drag & drop or Insert key).

NB*: Press [ F1 ] to see all the available options (i.e. MAIN SHORTCUT KEYS: [ F2 ] Open the Search window).
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: HTML5 YouTube Player

Post by JHPJHP »

Updated:
- added video downloading

Video Downloading
The HTML5 YouTube Player already includes a simple search window, it was a no-brainer adding the youtube-dl binary, mentioned in this post by Rinzwind.

1. Press [ F2 ] to open the Search window.
2. Search for a video by name, description, category, etc.
3. Press the Download button.
4. Partial and completed downloads can be found in the [ videos ] folder.

Move the mouse pointer over the Taskbar icon to view real-time download percentages.
Closing the search window or exiting the application will not stop videos from being downloaded.

Multiple Downloads
- execute a download on multiple single searches
- execute a download on a created playlist

Create a Playlist by dragging and dropping previously returned search images onto the YouTube logo.

NB*: The playlist is saved to an ADS when created from the executable not the IDE.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: HTML5 YouTube Player

Post by JHPJHP »

Updated:
- added Update youtube-dl button
- added a few small enhancement
- squashed a couple bugs

NOTE: Microsoft Visual C++ Redistributable binaries were added to the package; not needed on most systems.

NB*: Clicking an arrow button past the last search result will access the next group of videos related to your search.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: HTML5 YouTube Player

Post by JHPJHP »

Updated:
- added High Quality video button
- added the ffmpeg.exe binary
- added license files
- optimized parts of the code
- squashed some bugs

Included script by luis: HTMLEncoder / HTMLDecoder

High Quality
If available, high quality audio and video files are downloaded separately, then merged into a supported format using FFmpeg.

NB*: Download package size has greatly increased due to the included binaries.
Last edited by JHPJHP on Wed May 17, 2023 6:22 pm, edited 1 time in total.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

HTML5 YouTube Player

Post by JHPJHP »

Updated:
- added the ability to cancel downloads
- squashed a few bugs
- optimized various parts of the code

NOTE: There is a new version of youtube-dl.exe; this would be a good time to test the update feature available from the Search window.

Cancel Downloads
Pressing the close [ x ] button in a Download window (located in the taskbar) will open a prompt to cancel the download.
Using the Search window, downloading the previously cancelled video will resume from where it terminated.

NB*: Even if the Main window is closed, Download windows will remain open (up to one hour) while processing.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: YouTube Player & Downloader

Post by JHPJHP »

Updated:
- added a thumbnail player
- added the option to download audio only
- squashed a couple bugs

Thumbnail Player
When the main window (YouTube Player) is minimized, a thumbnail version of the player opens in a corner of the screen.
Pressing the [ F8 ] key slides the thumbnail player to a different corner of the screen.

Audio Only
Supports three formats: MP3, WAV, FLAC (i.e. mp3 @ 192 kbit/s).
Last edited by JHPJHP on Tue Mar 23, 2021 4:59 pm, edited 3 times in total.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: YouTube Player & Downloader

Post by JHPJHP »

Updated:
- added Save Results to the Search window
- squashed a major Search window bug and a couple minor bugs
- updated the FFmpeg binaries

FFmpeg binaries have also been updated in the following packages:
- Deform Image: MLS
- Video Snipping Tool
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: YouTube Player & Downloader

Post by JHPJHP »

Updated:
- added Quick Search
- improved various parts of the code
- squashed a couple bugs

added Quick Search
- press the [ F4 ] key to open the Quick Search bar
Last edited by JHPJHP on Tue Aug 03, 2021 2:23 am, edited 1 time in total.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: YouTube Player & Downloader

Post by JHPJHP »

Updated:
- patch a glaring buffer overflow
- added additional error checking
- corrupt files are now saved for additional reference
Last edited by JHPJHP on Sun Oct 18, 2020 9:48 pm, edited 1 time in total.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: YouTube Player & Downloader

Post by JHPJHP »

Updated:
- patched a small bug

The problem was noticed after testing the application using the latest version of PureBasic.
Last edited by JHPJHP on Sat Jan 21, 2023 7:46 am, edited 4 times in total.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: YouTube Player & Downloader

Post by JHPJHP »

Updated:
- improved thumbnail player

Thumbnail Player
When the main window (YouTube Player) is minimized, a thumbnail version of the player opens in a corner of the screen.
Pressing the [ F8 ] key slides the thumbnail player to a different corner of the screen.

NOTES:
Drag / Drop video image onto the YouTube logo to build a playlist.
PureBasic Window and WebGadget seamlessly handle the YouTube Players built-in full screen option.

NB*: Press the [ F1 ] key from the main window to view all available options.
Last edited by JHPJHP on Sat Jan 21, 2023 7:47 am, edited 3 times in total.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: YouTube Player & Downloader

Post by JHPJHP »

Updated:
- numerous improvements
- squashed a couple bugs

Fixed some weird logic where the Quick Search bar would only return "Video Not Available".
In addition, at various times the player responded as if it had been redirected to the YouTube website [ F10 ], disabling most controls.
Last edited by JHPJHP on Sat Mar 25, 2023 10:56 am, edited 2 times in total.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: YouTube Player & Downloader

Post by JHPJHP »

Updated:
- replaced youtube-dl.exe with yt-dlp.exe

More Information:
- youtube-dl.exe
- yt-dlp.exe
Last edited by JHPJHP on Sat Mar 25, 2023 5:27 pm, edited 4 times in total.
Locked