I am working with the Windows Media Player component but I'm running into some trouble playing .mov and .mp4 files. I'm being told that they are running just fine outside the programming environment but inside they crash the application. Is there any way to get files of these formats to play inside an embedded Windows Media Player component?
Standard support for
.MP4 files in Windows starts with Windows 7, and Windows Media Player plays the files through Media Foundation API.
Earlier versions of Windows don't have out of the box MOV/MP4 support and Windows Media Player would pick the files if you have a third party DirectShow demultiplexer filter installed. The file is played back through third party component, possibly one of several choices available out there, through different API. This explains why something crashes in the same time being played back on another system.
There is actually little you can do to affect this, since in Windows 7 stock components are priority, and in older versions of Windows there is a competition of third party codecs and it's not so trivial to make WMP prefer one to another (you need to make sure the demultiplexer in question is registered with Windows at top priority, so that it is picked first before other possibly installed demultiplexers - there is no standard API/command for this and re-registration also requires local administrator rights, while playback itself does not).
Method One: Update Windows Media Player Method Two: Install third party codec Method Three: Install another MOV player on Windows Method Four: Convert MOV to Windows MPG, AVI, WMV, ASF with the help of iDealshare VideoGo