1. Because you already had avi extension specify in your original script. Here is what happen if I did not add the extra code:
a. Because divx codec can be an addon to Windows Media Player, since I have it installed in one of my pc, WMP will the avi file in IE and Firefox
b. On another pc, i did not have divx codec installed, Windows Media Player did not ask me to install extra codec, just simply don’t play the file in IE and Firefox ask for me to install extra plugin for browser.
2. Because you have already have used the avi extension and divx also use avi extension, I have to delete the code that ask WM Player to play the avi file.
Deleted this part:
//-- type mime : video/avi
$_lang['player_IE_avi'] = 'type="video/x-msvideo"
';
$_lang['player_NIE_avi'] = 'type="video/x-msvideo"';
and substitude your extra code with changes from:
//-- type mime : video/divx
$_lang['player_IE_swf'] = 'classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"
codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab" ';
$_lang['player_NIE_swf'] = 'type="video/divx"';
to this: (change the letters - swf to avi )
//-- type mime : video/divx
$_lang['player_IE_avi'] = 'classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"
codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab" ';
$_lang['player_NIE_avi'] = 'type="video/divx"';
Because the divx player can play multiple format of avi/mp4, so I think having the divx player to player any avi is better than using Windows Media Player as your original choice.
Problem:
I noticed, if I put 2 or more different Media file in one page, it will just detect the first media file and play that one and disregard the rest. The only time that the browser can detect 2 media files exist in one page is when I have the same file being call twice in the same page like this:
detect first
[!SimpleVideoShow? &video=`mnif.avi` &width=`400` &height=`320` !]
detect second
[!SimpleVideoShow? &video=`mnif.avi` &width=`400` &height=`320` !]
Now I can use 2 player show up one web page.
Also what is the syntax to stop autostart?
[!SimpleVideoShow? &video=`mnif.avi` &width=`400` &height=`320` &autostart=’false’!]
this does not change stop the player, the page load and the play will play right away.