Windows media player control with .NET
Posted
by brovar
on Stack Overflow
See other posts from Stack Overflow
or by brovar
Published on 2010-06-02T09:51:00Z
Indexed on
2010/06/02
9:53 UTC
Read the original article
Hit count: 248
What I want to do is to read media files (pics and videos) from a directory and display them one by one using the WMP control (AxWMPLib.AxWindowsMediaPlayer). In its older version it was enough to check the file's duration to distinguish images from videos, the new one randomly shows movies' duration properly or as zero. Does anyone know any other way of finding out what file is being proceeded withouth checking its extension (as a file can have an extension of .abc or so)? I'll be very grateful for any help.
(Sorry for my lousy English.)
© Stack Overflow or respective owner