Forum Moderators: open

Message Too Old, No Replies

media player in FireFox

Embed src will not update... or will it?

         

drummerBoy

2:36 am on Sep 6, 2005 (gmt 0)

10+ Year Member



My problem is really quite simple.
<script>
<!--
function PlayIt(anObj)
{
if(navigator.appName == "Microsoft Internet Explorer")
document.m.filename = anObj;
else
{
document.m.src = anObj;
document.m.play(true);
}
}
//-->
</script>

I just want a media player that can play a bunch of files, not necessarily a playlist though.
The issue is that when I call this method the <embed>'s src apparently does not actually get assigned anything. If it did, the media player's PLAY button would light up and the file would begin to playc ... correct?
My issue is mainly with FireFox, because it is more popular than netscape and one fix will probably fix both browser's issues. IE works nice.

jdMorgan

4:23 am on Sep 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



drummerBoy,

Welcome to WebmasterWorld!

Maybe this application note [devedge-temp.mozilla.org] will help.

Jim