Re: problem with WMP and firefox




MacFly wrote:
Hello,

I included windows media player activex into my web page to watch mpg
video file:
here is the code:

<OBJECT ID="Player"
type="application/x-ms-wmp"
url="http://<webserver>/<webapp>/getFile?<some_parameters>"
width=300 height=200>
<PARAM name="autostart" value="false"/>
</OBJECT>

I did my test with firefox 2.0
I installed WMP plugin for firefox from Port25
I also installed WMP 11
I used XP SP2

So, as you can see, in my URL, I don't try to watch directly mpg file by
passing the filename, I call a 'servlet' (java). My servlet check if the
sessionid from user's request is valid (user should be logged) and
stream the data video in the server's response.
I remarked 2 issues in my case:
-When I click play button, there are 2 requests which are sended
(user-agent:NSPlayer/11.0.5721.5145 WMFSDK/11.0).not 1. and I don't know
why.
-In the second request, wmp create a new session cookie in http
header,even if I add my sessionid in url.

Is somebody could help me?

Wow, what a coincidence... same *exact* problem with my project today,
only I'm on a ASP.NET backend.

Here's the really odd thing: if I watch a video first in IE, it works
OK in Firefox. WTF?!

Smacking my head against the wall today over this problem... I seem to
be doing the exact same thing that this page is doing:

http://plugindoc.mozdev.org/testpages/wmp9.html

Only mine is not working.

Clearly this page is also doing some sort of binary redirection
because that data parameter is a php page, not a WMV file. So I know
this can work.

.