HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Which Windows Media Player ClassID Should I Use?
Post new topic   Reply to topic    HTML Help Forum Index -> Multimedia
View previous topic :: View next topic  
Author Message
TDinDC



Joined: 21 Oct 2009
Posts: 2

PostPosted: Wed Oct 21, 2009 6:53 pm     Which Windows Media Player ClassID Should I Use? Reply with quote

In browsing this forum's thread "how to Put videos on Webpage", I saw two values given for the Windows Media Player ClassID:
CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 and CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6.

There's also the codebase attribute, which enables downloading the plug-in if the visitor's machine doesn't have it installed and activated. Note that the codebase attribute URL includes a cab (extractable installation cabinet file) with a version specified.

The ClassID is used in the <object> and <embed> tags to assist Windows in locating the application through its registry. On my own machine I find both ClassIDs in the registry.

FrontPage 2003 drops the ActiveX with the ClassID beginning with '6BF52...' into the HTML code, but its a 6-year-old app. Expression Web is less helpful, simply dropping an <object> tag with the src and type (mime type) attributes into the HTML code (they probably want us all to use SilverLight.)

Since I'm designing the page (live video) for the unknown visitor, I need to be sure I have set the correct ClassID and point to the correct URL and cab version for the 'codebase' attribute.

So, my questions are:
(1) can anyone tell me the difference between the two Windows Media Player ClassIDs? Which one chould I use?
(2) as to the 'codebase', what is the most recent URL and cab version?

If you know of a reliable resource on the internet where the information about these questions is kept current, please share the link with the forum.
PayneLess Designs



Joined: 28 Feb 2007
Posts: 3598
Location: Biloxi, MS

PostPosted: Wed Oct 21, 2009 9:07 pm     Reply with quote

Windows Media Player Reference

Get free video codes, embed your video and audio clips -- now!

BTW, there is only ONE embed tag.
TDinDC



Joined: 21 Oct 2009
Posts: 2

PostPosted: Thu Oct 22, 2009 7:11 am     Re Windows Media Reference Reply with quote

Ron, Thanks for the link to the W3Schools page. Interestingly enough, I'm on their site quite frequently, but never knew there was an article on the exact topic I sought an answer to; the correct ClassID is CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6.

Quote:
There's be only one <embed> tag
I guessed as much, but I've wondered what IE will do with the tag - it uses the <object> tag while evidently Firefox and Opera must use <embed>. I've tested the page w/o <embed> in IE7, Netscape (RIP!) 7.1, Firefox 3.5, Opera 9.64, and Safari 4.02 and Windows Media Player works with only the <object> tag in all but Firefox and Opera.

To handle all browsers, I've had to write some javascript that uses the navigator.userAgent to determine what the browser is and writes the appropriate text for the <object> and/or <embed> to the page.

The only remaining item is that I still don't know what the latest cab version is.
PayneLess Designs



Joined: 28 Feb 2007
Posts: 3598
Location: Biloxi, MS

PostPosted: Thu Oct 22, 2009 2:13 pm     Reply with quote

You're welcome. I use JavaScript to just write in the embed tag for the player so it validates ok. Firefox should be compatible with the object tags. It could be the CLSID used or the media player code. I have noticed that it has the problem you mentioned with only the object tags at times.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> Multimedia All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial