Media type check? -
10-12-2007
, 11:57 AM
Hi!
Is there any system functions that you can use to determine if a media file
is an image or a video?
Using the CamAPI you can save both videos and photos, these are currently
using the extensions .jpg and .mp4 (atleast on my PDAs), but perhaps there
are other extensions/types possible so I'd like a "worldwide" function for
this...
// Possibly one cold use a more extensive enum with image/video type
information...
public enum MediaType{ Image, Video, Unknown}
private MediaType GetMediaType( string fileName )
{ ... }
Any suggestions?
/ Peter |