can some one tell what is the code to play divx or avi

i try to add this code in class.video_player.php

function divx()
{
global $config;
$vshare_player = "<object classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616" width="600" height="400" codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab" id="object997344382">
<param name="autoPlay" value="false" />
<param name="custommode" value="Stage6" />
<param name="src" value="['video_id']" />
<param name="bannerEnabled" value="false" />
<param name="statusCallback" value="statuscall997344382" />
<param name="previewImage" value="" />
<embed type="video/divx" src="['video_id']" width="600" height="400" autoPlay="false" custommode="Stage6" bannerEnabled="false" previewImage="" statusCallback="statuscall997344382" pluginspage="http://go.divx.com/plugin/download/" id="embed997344382"></embed>";
return $vshare_player;
}


but is not working can some one give me the code please