play mp3 and avi

  • Follow


i find a solution to play mp3 and avi(big file)
witwhout windows media player.
the browser is firefox only.
the os is windows or linux.

windowsmedia:
http://www.webreference.com/programming/javascript/jf/column5/

i find example to other plugin (vlc not found, video freeze)

tnx
0
Reply Gufo 3/10/2010 8:24:04 AM

Gufo Rosso wrote:
> i find a solution to play mp3 and avi(big file)
> witwhout windows media player.
> the browser is firefox only.
> the os is windows or linux.
> 
> windowsmedia:
> http://www.webreference.com/programming/javascript/jf/column5/
> 

you find a (bad) solution.

<script type="text/javascript"><!--

Could really stop right there.

if(navigator.appName != "Microsoft Internet Explorer")

Hmm, doesn't look like a dog... it must be a cat!

document.write('<obj'+'ect id="medObj" pluginspace="'+pluginspace+'"
codebase="'+codebase+'" data="'+files[srchStr-1]+'" standby="Loading
Video..." style="float: left;" type="'+objType+'" width="'+dimW+'"
height="'+dimH+'"></object>');

There's a new spin on an old spell (strange and unnecessary concatenation).

if(navigator.appName == "Microsoft Internet Explorer")

....then they're a kind of serpent, that's all I can say.  :)

document.write('<embed pluginspace="'+pluginspace+'"
src="'+files[srchStr-1]+'" style="float: left;" type="'+objType+'"
width="'+dimW+'" height="'+dimH+'"></embed>');
   --></script>

It looks like they've got this somewhat backwards as well.  What would
this fork accomplish in IE?

I wonder how many times this has been copied and pasted.  Well, at least
it will fail immediately, so as long as the developers test their
"creation" at least once...
0
Reply David 3/10/2010 10:30:11 AM


1 Replies
271 Views

(page loaded in 0.143 seconds)

Similiar Articles:













7/11/2012 1:25:38 AM


Reply: