On Tue, 1 May 2007 11:54:00 -0700, CK <CK[ at ]discussions.microsoft.com> wrote:
[Quoted Text] >Hi, >I implemented a WMP plugin but I need to know what kind of media (ie CD, >DVD,...) is currently palying. Thanks for any help.
Using player.currentMedia.getItemInfo("MediaType") will return one of "audio", "other", "photo", "playlist", "radio", or "video".
You can query CDs for "WM/MCDI", and DVDs for "DVDID". Alternatively, you may be able to lookup ".cda" or ".vob" using the "FileType" item info attribute.
HTH Cheers - Neil ------------------------------------------------ Digital Media MVP : 2004-2007 http://mvp.support.microsoft.com/mvpfaqs
|