winzip icon

WMP Controls / Final

Email
Submitted on: 2/8/2019 1:18:16 PM
By: Quake 
Level: Intermediate
User Rating: By 3 Users
Compatibility: VB 6.0
Views: 13336
 
     WindowsMediaPlayer 11 (WMP.dll) (Final)(External Playlist)(CD/DVD), Controls, Chapters , Internal Playlist, Get Metadata Info's. This is a Demo Project. Not complete. Use this as a reference for your own project. Has many functions.

Update 01
Added:
Screenshot Example. Save Picture example
WMP9 SDK.pdf

Update 02
Added: More Metadata's
Added: Fast Reverse/Forward by position
Revamped code
Fixed: Out of place code

Update 03
Added Zoom Examples
Added Mousedown Fast Reverse/Forward Timer Example - With Option
Added Hints in Openstate/Playstate

Update 04
Added: External Playlist Example
To get the External playlist to work right you must have a timer. This is the only way I could get it to work. If someone else knows another better way, please share.

Update 5
Added: CD/DVD Support
Notes: Unless you have the Registry fixed this won't work.

Update 6
included the Registry Fix.

Update 7
Fixed: Durration on DVD Playback.

Update 8
Added: Menu Checks
Added: Eject - Also Menu Checks
Fixed: Playlist of CD/DVD Click
Fixed: Refresh
Fixed: Forward/Reverse/Rate - See StatusChange
Fixed: Changing of Media - No longer Errors, See (Url = vbnullstring)

Update 9
Added: Screensaver thingy
Added: Ontop

Update: 10
You must have Alcohol 120% For this to work.
Added Auto Check if Alcohol 120% Exist
Added: Mount [Images / Iso's]
Added: UN-Mount
Notes the ontop will make your mouse disappear. IDK if this is any good for anyone but, it's there. This will be a final release. Unless I discover something new.
Get K-lite codec pack

Update 11:
Added: Drive DVD Label in tmrPlay See: 'Drive DVD Label

Works on WinXP, Win7 Compile and see!
Thanks to:
* LaVolpe
Supplied the Unicode Browser and Commondialog Classes
* Carles P.V
Supplied the original code to the Slider Control.
* Microsoft
For dropping VB6 support.
Lastly
* Myself. lol
For digging up countless pages of useless references.

NEEDED FILES XP, 7, 8.1, 10
VB60SP6-KB3096896-x86-ENU
https://download.microsoft.com/download/B/A/5/BA51304F-1DFB-4DAE-BC4F-F54323018562/VB60SP6-KB3096896-x86-ENU.msi



 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com


Other 33 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

11/11/2016 4:03:36 PMQuake

BTW, I can't get the Chapters to work. Something they did to the WMP. I got chapters to work in MSDXM but, not in WMP. I'm guessing we'll have to use a third party code to get the chapters out of the IFO, or Media file itself and Drawchapters from it. Chapters are there but, not retrievable do to permission limitations is my guess.
(If this comment was disrespectful, please report it.)

 
11/11/2018 5:57:50 PMEpsilonPi

Hello, there are collections missing when I try to run it.
Thanks
EP
(If this comment was disrespectful, please report it.)

 
11/11/2018 6:21:19 PMEpsilonPi

Hello again, I eliminated the collections missing and it's working. I am really interested in using the mediaplayer with w7, and using sami files for subtitles, I really would appreciate any help in this topic. I've developed a complete application that works perfect in XP,
Thanks in advance
EP
(If this comment was disrespectful, please report it.)

 
12/22/2018 12:04:23 PMEpsilonPi

Hello, it seems there is no solution for creating a mediaplayer in wy, using SAMI files for subtitles, though I'd appreciate very much your help with any suggestions.
Thanks
EP
(If this comment was disrespectful, please report it.)

 
12/28/2018 4:26:52 PMEpsilonPi

Hello, could you tell me if you have used the wmp for SAMI files, I really would appreciate your reply.
Thanks
EP
(If this comment was disrespectful, please report it.)

 
2/8/2019 10:39:55 AMCirce

Hi, I need to Contact vía email with You thanks
(If this comment was disrespectful, please report it.)

 
2/8/2019 10:48:20 AMCirce

Im looking for a program like this to detect Marks contained in MIDI files The Marks are name of chords
(If this comment was disrespectful, please report it.)

 
2/8/2019 11:52:24 AMQuake

QUOTE: ("I can't get the Chapters to work. Something they did to the WMP. I got chapters to work in MSDXM but, not in WMP. I'm guessing we'll have to use a third party code to get the chapters out of the IFO, or Media file itself and Draw chapters from it. Chapters are there but, not retrievable do to permission limitations is my guess.")
I can't help any further. If you get your hands on the WMP SDK it states that some options are only available through C/C++. If you look in my list of submissions you'll see this submission
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=74775& lngWId=1
Maybe
you can work with it to get what you want.
(If this comment was disrespectful, please report it.)

 
2/8/2019 12:13:44 PMQuake

@ EpsilonPi, No I have not used SAMI files with this. Have not tried. All my Videos are Hard coded English on foreign language parts.

QUOTE: ("About SAMI URLs
SAMI files can be associated with digital media files using a single URL. This is accomplished by using the
sami URL parameter. The URL parameter is preceded by the base URL and a ? character. A URL with a sami
parameter follows this syntax: URL?sami=captionsURL. The value of the URL parameter follows the
parameter name and an equals sign, as in the following example:
http://proseware.com/samitest.wma?sami=http://acc.proseware.com/test.smi
This
URL syntax is commonly used in a hyperlink or a Windows Media metafile to link directly to the locations
of both the digital media file and the SAMI file. When the user clicks on the hyperlink, the Player launches in
full mode and plays the digital media content.")
(If this comment was disrespectful, please report it.)

 
2/8/2019 12:14:30 PMQuake

@ EpsilonPi,
QUOTE: ("If the sami URL parameter is not specified, Windows Media Player will look for a SAMI file in the same
location as the digital media file and with the same file name except for the file name extension, which must
be .smi. If such a file is present, it will be opened automatically if caption display has been enabled in the Player.
Closed captions are enabled in the Player by clicking the Play menu, then clicking Captions and Subtitles, and
then clicking On. If closed captions are enabled, the captions contained in the SAMI file will display while the
digital media plays.")

so your url would be something like this:
I:\My Videos\47 Ronin (2013).mp4?sami=I:\My Videos\47 Ronin (2013).smi

Give that a try and see if that helps you.
(If this comment was disrespectful, please report it.)

 
2/8/2019 12:18:59 PMQuake

@ EpsilonPi, I would put in something before you add the url into the media player. Something that EXTRACTS the name of the file like "47 Ronin (2013)" then put the ".smi" on the end and do a search in that parent(same) folder for a file called 47 Ronin (2013).smi than you can add both files into an URL as it puts it into the player. Adding Subtitles after the fact of adding the media URL I have not tried.

ok
Quake
(If this comment was disrespectful, please report it.)

 
2/8/2019 12:31:20 PMQuake

BTW, The PDF for the SDK of WMP is in the Images folder. Give that a look through for any further Questions. It's where I got all my answer for this project.
(If this comment was disrespectful, please report it.)

 
2/8/2019 12:58:17 PMQuake

P.S. The people behind the Media Player Classic uses the MediaInfo.dll for their info gathering in Media Player Classic. My guess is they do("I could be wrong") use MediaInfo.dll to gather the Chapters. When you look over at my other project of MediaInfo.dll the Chapters start at Menu. I could not find out how to get Chapters out of MediaInfo.dll by using the commands that it has with out having to parse the info. The people behind Media Player Classic probably parses the chapters after the Menu text. People behind MediaInfo.dll is constantly updating it. So, that could have changed since, or later down the road. Parsing the chapters after the Menu would be the best way. Parse the chapter before the URL is added. Then add the Parsed Chapters after the URL is added. If you look at my other project "MSDXM Controls/Chapters" you can see how I did that there.

Quake
(If this comment was disrespectful, please report it.)

 
2/9/2019 4:44:02 AMQuake

@ EpsilonPi,
So I went, and tried to use a video file with a SAMI caption file, and it would produce an error. Cannot read the sami file. Tried it with a SRT caption file, and got the same error. The error come from the internals of WMP itself. If you try and play the same file in the OS Windows Media Player it also produces the same error. There's a program Local Subtitles for WMP 1.6 under Subtitle Tools on codecpack.co that pipes the subtitles. Or there's another one DirectVobSub from free-codecs.com
(If this comment was disrespectful, please report it.)

 
2/10/2019 11:35:01 PMWook

Nice! Will be very nice set up the audio output device, not the windows default only
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.