HighTechTalks DotNet Forums  

Media type check?

Dotnet Framework (Compact Framework) microsoft.public.dotnet.framework.compactframework


Discuss Media type check? in the Dotnet Framework (Compact Framework) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Peter Hartlén
 
Posts: n/a

Default 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





Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.