How can I embedded a codec in my player?

I need to distribute a CD with a movie file (avi with codec) and a player.
I dont like to request a codec installation.
Can I embedded a codec (DivX, Indeo, Microsoft MPEG-4 codec V2) in my player?
faustomenAsked:
Who is Participating?
 
shaneholmesConnect With a Mentor Commented:
Be sure you read up on the license agreement, make sure you can distibute the files out side of the owners install paskage. Sometimes the aggreement states that a certain number of files must co-exist when soing so,  for example, the License agreement.

As Ivanov_G, stated, find the files you want, place them on the CD with your main application, then from your main app, call

 regsvr32  to register the Codec DLL's

example:

ShellExecute(Handle, 'open', 'regsvr32.exe', '/MyDLL.dll', PChar(GetCurrentDir), SW_SHOWNORMAL);

or just

WinExec('regsvr32 /MyDLL.dll', SW_SHOW);


PS> dont forgert to unregister whn done.....

Shane
0
 
Ivanov_GCommented:

   you have to copy your codec in /system32 folder and regsvr32 this file...
0
 
tanghzCommented:
If the target system has a codec , will this produce conflicts?

0
 
MikProgCommented:
Yes! When you finish playback and unregister .dll codec will be unregistered completely even original.
0
All Courses

From novice to tech pro — start learning today.