I haven't tried everything myself yet, but this should work. If you want AVI files to default to play to DivX and not Windows Media Player, do the following.
Open "spgm-vid.php" and find this: // Windows Media Player
} elseif ( ($arrVideoDim[2] == 'asf' or $arrVideoDim[2] == 'riff') ) {
print ' <object id="MediaPlayer" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="'.$arrVideoDim[0].'" height="'.($arrVideoDim[1]+64).'">'."\n";
print ' <param name="url" value="'.$strVideoURL.'" />'."\n";
print ' <param name="AutoStart" value="true" />'."\n";
print ' <param name="EnableTracker" value="false" />'."\n";
print ' <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="'.$strVideoURL.'" width="'.$arrVideoDim[0].'" height="'.($arrVideoDim[1]+44).'" autostart="1" showcontrols="1">'."\n";
print ' </embed> '."\n";
print ' </object>'."\n";
Replace it with this: // Windows Media Player
} elseif ( $arrVideoDim[2] == 'asf' ) {
print ' <object id="MediaPlayer" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="'.$arrVideoDim[0].'" height="'.($arrVideoDim[1]+64).'">'."\n";
print ' <param name="url" value="'.$strVideoURL.'" />'."\n";
print ' <param name="AutoStart" value="true" />'."\n";
print ' <param name="EnableTracker" value="false" />'."\n";
print ' <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="'.$strVideoURL.'" width="'.$arrVideoDim[0].'" height="'.($arrVideoDim[1]+44).'" autostart="1" showcontrols="1">'."\n";
print ' </embed> '."\n";
print ' </object>'."\n";
// DiVX
} elseif ( $arrVideoDim[2] == 'riff' ) {
print ' <object classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" width="'.$arrVideoDim[0].'" height="'.($arrVideoDim[1]+20).'" codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab">'."\n";
print ' <param name="src" value="'.$strVideoURL.'" />'."\n";
print ' <param name="custommode" value="Stage6" />'."\n";
print ' <param name="autoPlay" value="false" />'."\n";
print ' <embed type="video/divx " src="'.$strVideoURL.'" custommode="Stage6" width="'.$arrVideoDim[0].'" height="'.($arrVideoDim[1]+20).'" autoplay="false" pluginspage="http://go.divx.com/plugin/download/">'."\n";
print ' </embed>'."\n";
print ' </object>'."\n";
There is additional code to change to fully support DivX. For example the default thumbnail and a link to the DivX player (replace the WMP icon with a DivX icon) but this should at least get you going on the video side.