Media player in browser

Need technical advice on coding your web pages? Covers HTML, JavaScript, CSS, and some server side technologies. Also the issue of some webpages not displayed well.

Moderator: Don_HH2K

Media player in browser

Postby murphy79 » Mon 26 Sep, 2005 9:20 am

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)
User avatar
murphy79
junior member
junior member
 
Posts: 16
Joined: Mon 11 Jul, 2005 5:12 pm
Location: Oslo, Norway

Postby Don_HH2K » Mon 26 Sep, 2005 8:27 pm

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: HP Compaq nx6325 - Turion 64 X2 @ 2GHz, 2GB DDR2, 100GB HD, ATI Radeon X300, 15" LCD, Seven Pro
Handheld: Palm Treo 650 - Intel PXA270 @ 312MHz, 10MB RAM, 32MB flash, 2.7" LCD, Palm OS 5.4
User avatar
Don_HH2K
Moderator
Moderator
 
Posts: 5112
Joined: Sun 09 May, 2004 3:59 pm

Postby murphy79 » Wed 28 Sep, 2005 7:01 am

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)
User avatar
murphy79
junior member
junior member
 
Posts: 16
Joined: Mon 11 Jul, 2005 5:12 pm
Location: Oslo, Norway

Postby Antony » Wed 28 Sep, 2005 9:16 am

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

E.g.
[tt]<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>[/tt]
UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/412.7 (KHTML, like Gecko) Safari/412.5
User avatar
Antony
diamond member
diamond member
 
Posts: 14510
Joined: Tue 18 Jun, 2002 11:36 pm
Location: Sydney, Australia

Postby Don_HH2K » Wed 28 Sep, 2005 4:08 pm

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: HP Compaq nx6325 - Turion 64 X2 @ 2GHz, 2GB DDR2, 100GB HD, ATI Radeon X300, 15" LCD, Seven Pro
Handheld: Palm Treo 650 - Intel PXA270 @ 312MHz, 10MB RAM, 32MB flash, 2.7" LCD, Palm OS 5.4
User avatar
Don_HH2K
Moderator
Moderator
 
Posts: 5112
Joined: Sun 09 May, 2004 3:59 pm

MAC problems

Postby murphy79 » Mon 21 Nov, 2005 7:28 am

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)
User avatar
murphy79
junior member
junior member
 
Posts: 16
Joined: Mon 11 Jul, 2005 5:12 pm
Location: Oslo, Norway

ASX?

Postby murphy79 » Mon 21 Nov, 2005 7:30 am

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)
User avatar
murphy79
junior member
junior member
 
Posts: 16
Joined: Mon 11 Jul, 2005 5:12 pm
Location: Oslo, Norway


Return to Web Design and Page Coding

Who is online

Registered users: Google [Bot], Yahoo [Bot]