Killersites.com Homepage Welcome Guest   |   Register  |  Login
Login Name Password
  Search  
  Index  | Recent Threads  | Unanswered Threads  | Who's Online  | User List  | Help


Quick Go »

No member browsing this thread
Thread Status: Active
Total posts in this thread: 33
Posts: 33   Pages: 4   [ 1 2 3 4 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 57101 times and has 32 replies Next Thread
Male srwick56
Stranger



USA
Joined: Jan 13, 2006
Post Count: 1
Status: Offline
Reply to this Post  Reply with Quote 
confused Embedded Windows Media Player Help

I am working on a web site where the customer wishes to have a embedded Windows Media Player on the page.

But the customer wants the menu below, to play in the embedded player when a customer has clicked on a button from the menu below.

The customer does not want his customers download a player from Microsoft Window Media. Just wants the video clip to appear on the embedded player.

Please Help, I have ranked my brain's over this mater for sometime now.

Stephen Wickham

[Jan 13, 2006 1:02:38 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest    olivehurstman [Link] Report threatening or abusive post: please login first  Go to top 
Male billyboy
Advanced Member
Member's Avatar


Joined: Sep 3, 2005
Post Count: 2206
Status: Offline
Reply to this Post  Reply with Quote 
Re: Embedded Windows Media Player Help

Insert this bit of javascript into the head of your page:
<script type="text/javascript">
function play(media){
document.getElementById('mediaplayer').innerHTML=
'<object classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95"'
+'type="application/x-oleobject" width="320" height="285">'
+'<param name="showControls" value="false">'
+'<param name="fileName" value="'+media+'">'
+'<embed type="application/x-mplayer2" width="320" height="285"'
+'showcontrols="false" src="'+media+'"><\/embed><\/object>'
}
</script>
Add this to the CSS:
#mediaplayer {
width: 320px;
height: 285px;
background: #000;
}
And put this in the html where you want the videos to play and menu:
<div id="mediaplayer"></div>
<ul id="menu">
<li><a onclick="play(this.href);return false" href="">Source 1</a></li>
<li><a onclick="play(this.href);return false" href="">Source 2</a></li>
<li><a onclick="play(this.href);return false" href="">Source 3</a></li>
</ul>


You'll want to add your own styling to the links with CSS, add more links to the menu if needed and change the width and height to suit your page.
----------------------------------------
Quiquid latine dictum sit altum viditur
[Jan 14, 2006 3:34:23 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Female lm
Advanced Member
Member's Avatar


Joined: Oct 27, 2004
Post Count: 2550
Status: Offline
Reply to this Post  Reply with Quote 
Re: Embedded Windows Media Player Help

hi,
ok now i got embedded in html media player working but it is a standard silverish box.
But how to get a different skins to it?
I googled it already but im not sure where exactly to look for.
Can somebody help?
----------------------------------------

My blog

[Feb 5, 2006 4:15:56 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male ChrisOops
Stranger



Australia
Joined: Jun 16, 2006
Post Count: 3
Status: Offline
Reply to this Post  Reply with Quote 
confused Re: Embedded Windows Media Player Help

Hey,

You may not need this info now ... but here goes ... even if you embed Windows Media Player in a webpage, the client will still need Windows Media Player installed on their local machine to work, as that hexadecimal number references the local WMP, not the servers - no way around that??

Cheers
Chris
[Jun 16, 2006 12:39:30 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male blackcat
Stranger




Joined: Jun 14, 2006
Post Count: 16
Status: Offline
Reply to this Post  Reply with Quote 
Re: Embedded Windows Media Player Help

22d6f312-b0f6-11d0-94ab-0080c74c7e95 is class id of ActiveX. Media Player will work just like other ActiveX object on end computer. But it will be considered as security control since it is ship with Windows in default. You don't need to worry about this if your target visitors use windows-based computer. For MacOS, I guess you have to use RealPlayer or QuickTime.
[Jun 16, 2006 6:08:10 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male billyboy
Advanced Member
Member's Avatar


Joined: Sep 3, 2005
Post Count: 2206
Status: Offline
Reply to this Post  Reply with Quote 
Re: Embedded Windows Media Player Help

Hi Im,

I totally missed your post about changing skins. I've never done it and know nothing about it but I did find this if you're still intersted.

Enabling Users to Personalize Your Skin
that hexadecimal number references the local WMP, not the servers - no way around that??

A server wouldn't have WMP. It's a chunk of software for playing media on a user's computer. And you can install it on a Mac, although M$ is discontinuing support and updates for the Mac version.
----------------------------------------
Quiquid latine dictum sit altum viditur
[Jun 16, 2006 7:19:27 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Female lm
Advanced Member
Member's Avatar


Joined: Oct 27, 2004
Post Count: 2550
Status: Offline
Reply to this Post  Reply with Quote 
Re: Embedded Windows Media Player Help

hi Bill,
Thanx for the reply. I will look into it.
i was looking at the time for some decent looking player, rather just looking like tiny strip with some buttons and not like this standard silverish media player box.
Since then i tested odeo for mp3's and YouTube for video's and decided, if i will need some players, i will use rather those.

cool May be my other unanswered questions will show up again this way.
Thanx again.
----------------------------------------

My blog

[Jun 16, 2006 7:54:17 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male billyboy
Advanced Member
Member's Avatar


Joined: Sep 3, 2005
Post Count: 2206
Status: Offline
Reply to this Post  Reply with Quote 
Re: Embedded Windows Media Player Help

Are those Flash based player's? I've been sort of pondering using those instead of Media Player because I've seen some that look way nicer. Do you have to convert file formats or anything like that. What do you know about them.
----------------------------------------
Quiquid latine dictum sit altum viditur
[Jun 16, 2006 8:03:49 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Female lm
Advanced Member
Member's Avatar


Joined: Oct 27, 2004
Post Count: 2550
Status: Offline
Reply to this Post  Reply with Quote 
Re: Embedded Windows Media Player Help

Odeo (www.odeo.com) is based on flash player. This code they give to embed:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwav...cab#version=7,0,0,0" width="476" height="80" align="middle"><param name="allowScriptAccess" value="always"> <param name="movie" value="http://odeo.com/flash/audio_player_fullsize.swf?ver=1.03"> <param name="wmode" value="transparent">
<param name="flashvars" value="audio_id=1152318&audio_duration=5.345&valid_sample_rate=true&external_url=http://media.odeo.com//files/7/1/1/363711.mp3">
<embed src="http://odeo.com/flash/audio_player_fullsize.swf?ver=1.03" width="476" height="80" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="audio_id=1152318&audio_duration=5.345&valid_sample_rate=true&external_url=http://media.odeo.com//files/7/1/1/363711.mp3" wmode="transparent">
</embed>
</object>

This particular code gives quite huge player with pink button but they have also different skins now.

YouTube (www.youtube.com) also on flash. It is just copy-paste and streaming video on a page. It was quite a shock to get my fav.video on my page in a few mins.

The good thing about these two is a conveinience. You dont have to spend much time on little things like embedding media.

About files format they support: it is better to see it for yourself there. I didnt dig further yet.
Cheers
----------------------------------------

My blog

[Jun 16, 2006 8:23:45 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Male blackcat
Stranger




Joined: Jun 14, 2006
Post Count: 16
Status: Offline
Reply to this Post  Reply with Quote 
Re: Embedded Windows Media Player Help

@billyboy,

Skin doesn't help in this case. It works on local computer only. You can't control anything from server-side.
[Jun 17, 2006 4:24:46 AM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Posts: 33   Pages: 4   [ 1 2 3 4 | Next Page ]
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread