This is a complete functional Access application to play your Music and Video folder contents in your Windows PC.
Anyone interested in how to interact with Windows media files utilizing the Windows Media Player ActiveX control will find a wealth of useful code in this app. Many comments are included. This app depends on Windows Media Player Legacy being installed on the target PC. If needed, use Google to find out how to install it. Microsoft has changed the method several times, so be persistent to find the match for your current Windows version/build.
I have an earlier post on a simple MP3 player here at the forum dated 3/2/2022 at https://www.accessforums.net/showthread.php?t=85480. This app should replace that app.
Microsoft has released a new Media Player (Note that the Windows prefix has been dropped). It has a more modern user interface and is a bit more intuitive than the old Windows Media Player (WMP).
But many people (including me) are having trouble with this new player finding the media files on the computer. Microsoft so far has been unresponsive.
This writeup deals with 3 media players. To keep matters straight, note terminology below.
1. WMP, Windows Media Player Legacy, around since Windows XP
2. MP, Media Player, new with Windows 11
3. DMP, this app.
I believe DMP has a better UI and better features then either WMP or WP. The UI is just so much easier to grasp and use.
Both the MP and WMP as well as DMP can coexist on the same machine with no problems that I could detect.
However, for DMP to function properly, the old WMP is required, as the new MP does not update the Music Library in a suitable fashion, or at all. Nor does MP show or make provisions for visualizations.
As for DMP, I've added additional tabs for additional functionality. I added MIDI because I have acquired a few dozen MIDI files over the years and added the ability to play them without having to go to VLC.
Provisions to play videos have also been added.
Some of the enhancements were to match the new MP, such as the skip forward and backward as well as the Search. DMP will do some things the WP cannot, such as showing the shuffles remaining when in shuffle
mode and showing the total playing time for all the current items in the listbox. Nor is Most Recorded function available in MP.
DMP works by reading media metadata in the Music and Video Library (NOT directly from the MP3/4 file itself). The Libraries are not the same entity as the MP3/4 files in your C:\Users\UserName\Music folder. The Music and Video Libraries (In Windows 11 located at C:\Users\Yourusername\AppData\Local\Microsoft\Medi a Player) are created by WMP scanning your Music and Video folders (and subfolders) and creating the Library entities. Any time you make modifications to existing files or add files to your Music or Video folder, you must run WMP to update the Library. If the metadata in your MP3 or MP4 files is missing, incomplete or wrong, it will affect what the DMP app can see, display and play. I keep my metadata tidy with a shareware utility program, MP3Tag. MP3Tag will also manage album cover images and even allow you to use your own image files.
Playlists: DMP will handle .wpl and .m3u playlists. It will probably be ok with .m3u8 files if you simply change the extension to .m3u. There are a large number of free programs and cloud services that convert playlists from one format to another, as well as converting media file formats.
Limitations: WMP is picky about which .mp4 video files on your machine that it will add to the Video Library. It balks at large high resolution files. Anything over 4K 30fps is ignored, and some 4K 30fps files are ignored also. This limitation will likely only affect users who create their own highest quality video content. The average user is unlikely to ever have such video files, because the file size required to hold such high fidelity video is enormous; like 187MB for 13 seconds viewing at 4K 60fps, or 3.5GB for 4 1/2 minutes. These video files are simply not practical for everyday viewing and consuming storage space. Content providers must reduce file size and quality of their high resolution videos before posting content on the internet, or even emailing to friends. My ISP will refuse sending email attachments greater than about 30MB.
Currently, smartphone video, while quite large, does not approach these severe limits. However, GoPro, DJI Drone and DJI Action cameras can.
Since DMP only looks at the Media Libraries for input, it will never see these large high resolution files.
In any case, considerations for improved PC performance could be graphics cards, installed RAM, use of SSD, CODECs and Windows settings.
Other: Sometimes, WMP will not update the Music library after mass changes to an attribute (like Genre, for example) after an update with a utility such as MP3Tag. Sometimes even a simple change can be ignored. Both WMP and MP appear to have provisions for rebuilding the libraries, but neither works consistently. In fact, I suspect that WP does not use or update the old (WMP) library at all.
You can save time and trouble by forcing reconstruction of the Library by simply deleting the ENTIRE contents of your AppData's Media Player folder. Really. In Windows 11, mine is at C:\Users\davegri\AppData\Local\Microsoft\Media Player
After emptying the \Media Player folder, simply open WMP (Legacy) and do nothing with it as it rebuilds the library, which for me takes about 10 minutes for 2451 songs/videos, and you have a fresh pristine Lib.
If you're curious about the visualization shown, I used WhiteCap from https://www.soundspectrum.com/