MozillaZine

Windows Media Player...

Discussion of bugs in Seamonkey
rij73

User avatar
 
Posts: 34
Joined: November 6th, 2002, 7:41 am
Location: New York, USA

Post Posted November 17th, 2002, 8:55 am

Everytime I try to view an embedded WMP video, Mozilla crashes... shuts down completely.
I have Windows XP, WMP8, Mozilla 1.1/20020826
Anybody else have this problem? You think I'd be better off with 1.2 even though it's in beta?

As long as I brought up WMP, any time I try to use it to browse radio stations, it says that I'm not connected to the internet, but I AM connected to the internet... Anybody have that problem?

old Neil Parks
Moderator
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted November 22nd, 2002, 1:25 pm

I use Phoenix rather than Mozilla, but I presume they should work with WMP the same way. I haven't had any problem with WMP.

What version of WMP are you using? Try uninstalling it, and then downloading the latest release (version 9).

gareth53
 
Posts: 3
Joined: December 4th, 2002, 6:44 am

Post Posted December 4th, 2002, 6:50 am

My problem is this:

i link to a html page with an embedded windows media player.

i've used html code supplied by microsoft

netscape 6.1, 7.0 and Gecko 1.0 begin to buffer the stream but then the browser seems to jump back to the previous page in the history.

there's no problem if the window is a new one - i.e. there are no entries in the history...

i'm using a Win98 platform and i used the Windows 7.1 installer. I think this may be the problem - but the netscape communicator plug-in is no good!

anybody else having this problem?

thanks for your help, in advance. ta.

Gunnar

User avatar
 
Posts: 729
Joined: November 5th, 2002, 4:55 am

Post Posted December 4th, 2002, 9:56 am

gareth53 wrote:My problem is this:

i link to a html page with an embedded windows media player.

i've used html code supplied by microsoft


Uh-oh ;-)

gareth53 wrote:netscape 6.1, 7.0 and Gecko 1.0 begin to buffer the stream but then the browser seems to jump back to the previous page in the history.

Do you script the plugin, i.e. use Javascript to "talk" to the plugin? If so, that is the reason why it won't work. Microsoft's Windows media Player Plugin for Mozilla / Netscape 7 does not support scripting.

gareth53 wrote:but the netscape communicator plug-in is no good!

The WMP plugin for Netscape 4.x does not work with Mozilla. The plugin for Mozilla that comes with WMP 7.1 and higher is *very* basic in functionality (see above), but it's a Microsoft-issue (they make the plugin).

Could you please provide us with a link to your page? Thanks !

Gunnar
http://mozilla.gunnars.net - The Mozilla Help Site

gareth53
 
Posts: 3
Joined: December 4th, 2002, 6:44 am

Post Posted December 4th, 2002, 10:31 am

It's a very basic embed with no scripting whatsoever, i've long since abandoned using javascript to talk to Windows Media on anything but IE (experience hurts)

here's an example which results in the user experience described above...

http://www.xfm.co.uk/staticweb/ccl/play ... lem01.html

i've stripped it right down to the basic embed.

it works if you set the browser to launch with a blank page and then paste the URL in - but not if there's any history to the browser window.

old Neil Parks
Moderator
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted December 4th, 2002, 10:52 am

gareth53 wrote:here's an example which results in the user experience described above...

http://www.xfm.co.uk/staticweb/ccl/play ... lem01.html


WFM, Windows ME, Phoenix 12/3 nightly. When I right click on the musician and select "about" from the context menu, I get:

About Windows Media Player Control
6.4.07.1124

Opening WMP by itself shows that I have version
7.00.00.1440

Take that for what it's worth. Maybe some earlier and/or later versions of WMP don't integrate properly?

Gunnar

User avatar
 
Posts: 729
Joined: November 5th, 2002, 4:55 am

Post Posted December 4th, 2002, 10:57 am

You might want to try the following. A friend of mine wrote it (The code is for an iframe that contains an embedded Windows Media Player. the advantage of using Iframes is that you can call several streams from a single page by reloading the iframe with the new file):

The simplest way, however, would be to embed Real One Player for Mozilla / Netscape 6,7 instead of WMP. It works great (should support scripting) and it can display Windows Media Video files ! See, there's always a workaround :-)

But, if you insist on using WMP, here you go:
------------------------------------------------
<html><head><title>Test</title>
</head>
<script language=JavaScript>


document.writeln('<object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject" width="320" height="301" hspace="0" vspace="0" border="0" standby="Loading Microsoft Windows Media Player components..." id="MoviePlayer">');
document.writeln(' <param name="fileName" value=>');
document.writeln(' <param name="URL" value="'+parent.film+'">');
document.writeln(' <param name="animationatStart" value="false">');
document.writeln(' <param name="autoStart" value="true">');
document.writeln(' <param name="showControls" value="true">');
document.writeln(' <param name="showStatusbar" value="true">');
document.writeln(' <param NAME="uiMode" VALUE="mini">');



document.writeln('<embed type="application/x-mplayer2" name="MoviePlayer" swliveconnect="true" width="320" height="257" pluginspage="http://www.microsoft.com/Windows/windowsmedia/download/plugin.asp" src="'+parent.film+'" ShowControls="0" ShowPositionControls="0" ShowStatusBar="-1" DisplaySize="0" border="0"></embed>');
document.writeln('</object>');




function m_StartTimer() {

player = MoviePlayer;

var metadatas = player.currentmedia.getiteminfo("author");
var temp = player.currentmedia.name;
if(temp != "")
{
if(metadatas != "")
{
metadatas += " -- ";
}
metadatas += temp;
if (player.PlayState != "3") {metadatas = player.PlayState};
}


if (document.layers) {
document.layers["status"].document.write(metadatas);
document.layers["status"].document.close();
}
else if (document.all) {
document.all["status"].innerHTML = metadatas;
}
else if (document.getElementById) {
document.getElementById("status").firstChild.nodeValue = metadatas;
}



dTimer = setTimeout('m_StartTimer()',1000);

}
m_StartTimer();
</SCRIPT>
<body>

<div id="status" style="position:relativ; left:0; top:0">
</div>
</body>
<script language=JavaScript>
m_StartTimer();

//<APPLET NAME="Player" CODE="WMPNS.WMP" HEIGHT="200" WIDTH="200" MAYSCRIPT>
// <PARAM NAME="URL" VALUE="video.wmv"/>
//</APPLET>

</SCRIPT>
</html--!>
----------------------------------------------------------------------------------------------------------

A new video is called from a link that looks as follows:
<!--a href="javascript:loadPlayerContent('http://www.filesourceurl/filename.asx')" class="text">

and the corresponding javascript looks like this:

<script type="text/javascript">
var film = "beck.asx";
function loadPlayerContent(file)
{
film = file;
parent.PlayerFrame.document.location = "player.html";
};

</script--!>

If you need more information, I can give you my friend's contact info (Javascript is beyond me ;-)

Gunnar
http://mozilla.gunnars.net - The Mozilla Help Site

gareth53
 
Posts: 3
Joined: December 4th, 2002, 6:44 am

Post Posted December 5th, 2002, 2:57 am

Thanks for your replies, very helpful....

haven't managed to get your solution to work yet Gunnar - but I'll persist.

it's interesting that embedded WMP uses a 6.4 plug-in (alarm bells!!!!) - this happens in all browsers, even IE.

Suggests that maybe i'm using an incorrect object/embed type value....???

any ideas?

(although it still doesn't xplain the weird back/history problem)

Gunnar

User avatar
 
Posts: 729
Joined: November 5th, 2002, 4:55 am

Post Posted December 5th, 2002, 5:28 am

Gareth,

The code was taken out of the context of the page in which itwas used. Unfortunately, I cannot post a link to the page itself. I sent you a private message with my friend's email address. He should be able to help you out.

Gunnar
http://mozilla.gunnars.net - The Mozilla Help Site

Return to SeaMonkey Bugs


Who is online

Users browsing this forum: No registered users and 1 guest

cron