| SillyDog701 Forums |
| Author |
Message |
murphy79

 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 |
|
 |
Don_HH2K


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 |
|
 |
murphy79

 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 |
|
 |
Antony


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 |
|
 |
Don_HH2K


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 |
|
 |
murphy79

 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 |
|
 |
murphy79

 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 |
|
 |
|