Media player in browser

You are here:  SillyDog701 > Message Centre > Web Design and Page Coding > [sdt=9892]
SillyDog701 Forums
Author Message
murphy79
junior member

Oyvind
Joined: 11 Jul 2005
Posts: 16
Location: Oslo, Norway
26 Sep, 2005 8:20 am Media player in browser [sdp=64031]  

Hello.
I want windows media player to display a picture when it starts buffering in the web page.
How can this be done?

UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50215; .NET CLR 1.0.3705)
Back to top profile
Don_HH2K
Moderator


Joined: 09 May 2004
Posts: 4745
26 Sep, 2005 7:27 pm [sdp=64068]  

If you're using Windows Media Services 9 for Windows Server 2003 SP1, it's easy to specify via MMS protocol headers what you want to play. I don't have a reference server at the moment, but I believe that in the MMC config applet for Windows Media Services, you can specify an ad to play at the beginning of each clip, which will play (I think) while the rest of the content loads.

There may be ways of doing this from within the XML-based ASX specification, but if there are, I'm unaware of it. Take a look at the ASX element reference over at MSDN for more on that.

UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.11) Gecko/20050728 Donzilla/0.8PR1 (WML/1.3; No IDN)

Laptop: Turion 64 X2 @ 2GHz, 2GB DDR2-667, 100GB HD, ATI Radeon X300, 15" LCD, Seven Ultimate RC
Back to top profile website
murphy79
junior member

Oyvind
Joined: 11 Jul 2005
Posts: 16
Location: Oslo, Norway
28 Sep, 2005 6:01 am [sdp=64135]  

This is how I embed the player in the webpage:

<OBJECT width="400" height="337"
codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" type="application/x-oleobject"
CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95">

<PARAM NAME="filename" VALUE="mms://........">
....and so on.....

No asx here...
There was a <PARAM name="showWhileBuffer"> tag?? I think I remember seeing it used, but I can't get it to work

UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50215; .NET CLR 1.0.3705)
Back to top profile
Antony
Site Admin


Joined: 18 Jun 2002
Posts: 12754
Location: Sydney, Australia
28 Sep, 2005 8:16 am [sdp=64139]  

I am not sure if you can have a pre-loading picture, but you can try standby attitude (for <object>).

E.g.
<OBJECT width="400" height="337"
codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" type="application/x-oleobject"
CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="loading movie, please wait">
<PARAM NAME="filename" VALUE="mms://........">
...
</OBJECT>


UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/412.7 (KHTML, like Gecko) Safari/412.5

Back to top profile website
Don_HH2K
Moderator


Joined: 09 May 2004
Posts: 4745
28 Sep, 2005 3:08 pm [sdp=64153]  

Since MMS URLs are controlled by WM Streaming Sever, all you need to do is set the startup ad on the server to whatever you want it to be.

UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.11) Gecko/20050728 Donzilla/0.8PR1 (WML/1.3; No IDN)

Laptop: Turion 64 X2 @ 2GHz, 2GB DDR2-667, 100GB HD, ATI Radeon X300, 15" LCD, Seven Ultimate RC
Back to top profile website
murphy79
junior member

Oyvind
Joined: 11 Jul 2005
Posts: 16
Location: Oslo, Norway
21 Nov, 2005 6:28 am MAC problems [sdp=66527]  

Hello, I'm back with more problems.

I solved my last problem using asx. This does not work on MAC when displaying images.

My problem is using javascript to update the src in the <embed src=""> tag, so that i can get my menu to work on MAC.

In my html code:
<OBJECT ID="MP" CLASSID="....." TYPE="application/x-oleobject" width="400" height="365">
<PARAM NAME="URL" VALUE="">
<EMBED TYPE="application/x-mplayer2" PLUGINSPAGE="..."
width="400" height="300" src="asxfile.asx" id="MP">
</EMBED>

in my javascript code (things I've tried):
document.MP.src="url";
document.getElementById('MP').src="url";
MP.src="url";

Hope somone can help

UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50215; .NET CLR 1.0.3705)
Back to top profile
murphy79
junior member

Oyvind
Joined: 11 Jul 2005
Posts: 16
Location: Oslo, Norway
21 Nov, 2005 6:30 am ASX? [sdp=66528]  

One more question:

Can I put all my cllips in one asx file, and then use javascript to chose clip?

UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50215; .NET CLR 1.0.3705)
Back to top profile
Display posts from previous:   
Reply to topic    Forum Index > Web Design and Page Coding All times are CST (GMT -6)
page 1 of 1
To add your questions, comments, and for more features and more, please join SillyDog701 Message Centre. It's free! This is SillyDog 701 Message Centre (SD701 Forums).

Apple iTunes iTunes

*Search | FAQ | Rules and Policies | MozInfo701 - Mozilla Information Centre | SD701 Open Directory | Message Board Map | download Netscape