If I try playing an MP4 file I get an error that says "cannot determine
device type from the given file extension"
I tried setting the device type in code to dtAVIVideo or dtWaveAudio or
dtDigitalVideo or dtOther but none worked.
What do I need to do in order to get TMediaPlayer to play mp4 files?
Thanks,
Jeff
> {quote:title=Jeff Yankauer wrote:}{quote}
> If I try playing an MP4 file I get an error that says "cannot determine
> device type from the given file extension"
>
> I tried setting the device type in code to dtAVIVideo or dtWaveAudio or
> dtDigitalVideo or dtOther but none worked.
>
> What do I need to do in order to get TMediaPlayer to play mp4 files?
>
> Thanks,
>
> Jeff
The mp4 file extension is probably missing from
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\MCI Extensions
Also you will need a VFW codec that can support the audio and video formats in the mp4. If you don't have one already I'd sugget looking at FFDShow
http://ffdshow-tryout.sourceforge.net/download.php