iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-20-2004, 01:23 PM
WebProWorld New Member
 
Join Date: Oct 2003
Location: Nashville
Posts: 12
cncsmiths RepRank 0
Default Settings for an embedded windows media player

I have embedded a windows media player on a web page and I would like to know if i can get the visualizations with the audio. I've researched this with no success. Does anyone have any suggestions?

http://www.yayodarecords.com/yayoda-...usic-video.htm

Eagerly Awaiting,
Chris
Reply With Quote
  #2 (permalink)  
Old 02-20-2004, 02:32 PM
paulhiles's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: UK
Posts: 2,089
paulhiles RepRank 0
Default

Hi Chris,

Do you want to know how to create your own vizualizations for the Windows Media Player? If so, then you'll need to download the SDK for the program. You'll also need Microsoft Visual C++, or Microsoft Visual C++ .NET. Here's an introduction for working with visualizations in the SDK.
Also, if you're creating additional visualizations, you would need to provide the user with an option to install. As far as I can gather, this cannot be done through the player itself.

If you simply want to change the visible user controls on the embedded player, then that's fairly easy to implement. (see below)
Player.uiMode
"The uiMode property specifies or retrieves a value indicating which controls are shown in the user interface." (from the Microsoft msdn site).

I'm sure what you're really after is something completely different! :o)
Feel free to supply us with further details.

Paul
Reply With Quote
  #3 (permalink)  
Old 02-20-2004, 04:33 PM
WebProWorld New Member
 
Join Date: Oct 2003
Location: Nashville
Posts: 12
cncsmiths RepRank 0
Default Really wanting anything

Thanks for the reply Paul,

Right now when audio plays I have nothing just a black screen. I still haven't found anything that really leads me to believe that I can control the display easily.

I wouldn't mind just importing a jpg or something into the display while the song was playing. I'm really not wanting to do anything real complicated.

I'm using windows media 6.4 for browser compatibility, so that as i know is my first problem. I still feel as though I should be able to import something ie microsoft plugin or importing a graphic.

Chris
Reply With Quote
  #4 (permalink)  
Old 02-20-2004, 07:19 PM
paulhiles's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: UK
Posts: 2,089
paulhiles RepRank 0
Default

Hi Chris,

One simple way to get rid of the black screen would be to set your <object> height to 40 pixels.

<object width="225" height="40"

There are around 200 properties that can be manipulated using the SDK, so I don't know whether you really want to spend the time figuring out all that code! :o)

I also came across this code sample on the MSDN site.. it replaces the standard controls with a simple "Play" and "Stop" (I set the height & width to "0")

<object id="MediaPlayer1" width="0" height="0"
classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95"
standby="Loading Windows Media Player components..."
type="application/x-oleobject">

<param name="FileName" value="'document.MediaPlayer1.FileName'">
<param name="ShowControls" value="False">
<param name="AutoRewind" value="True">
<param name="AutoStart" value="False">
<param name="uiMode" value="none">
</object>



<input type="button" name="BtnPlay" value="Play">
<input type="button" name="BtnStop" value="Stop">

<script language="VBScript">
<!--
Sub BtnPlay_OnClick
MediaPlayer1.Play
End Sub

Sub BtnStop_OnClick
MediaPlayer1.Stop
MediaPlayer1.CurrentPosition = 0
End Sub
-->
</script>


Looks as though there are even more options with the latest Windows Media Player.

HTH!

Paul
Reply With Quote
  #5 (permalink)  
Old 02-20-2004, 07:51 PM
WebProWorld 1,000+ Club
 
Join Date: Aug 2003
Location: Edmonton, AB, Canada
Posts: 1,527
mikmik RepRank 2mikmik RepRank 2
Default

Paul, does this call up the media serving components from somewhere?
The code that I use has an href in it to a microsoft site:
Quote:
<object id="mediaPlayer"

classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"

codebase="http://activex.microsoft.com/activex/
controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"

standby="Loading Microsoft Windows Media Player components..."

type="application/x-oleobject">

<param name="fileName"
value="/mike/assets/media/04 Awakening.wma">

<param name="animationatStart" value="true">

<param name="transparentatStart" value="true">

<param name="autoStart" value="true">

<param name="showControls" value="true">

</object>
I can also load this into a seperate popup window with window.openNew.
Reply With Quote
  #6 (permalink)  
Old 02-20-2004, 08:05 PM
paulhiles's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: UK
Posts: 2,089
paulhiles RepRank 0
Default

Yeah Mik, it is a good idea to have the CODEBASE parameter included in with the object properties.

Extract from MSDN:
The following OBJECT tag attributes are required.

ID: The name used to reference this instance of the control in scripts.
CLSID: The Class Identifier (CLSID) of the Windows Media Player control, which is used by the Web browser to create the ActiveX object on the page.

Using the CODEBASE attribute is strongly recommended, but optional. It contains a Uniform Resource Locator (URL) pointing to a location where the Windows Media Player control can be downloaded from, if it is unavailable on a user's system. In addition to the address of the Windows Media Player object, the CODEBASE attribute can optionally specify a version number of the Windows Media Player control.


it's all giving me a bit of a headache! ;o)

Paul
Reply With Quote
  #7 (permalink)  
Old 02-20-2004, 08:36 PM
WebProWorld New Member
 
Join Date: Oct 2003
Location: Nashville
Posts: 12
cncsmiths RepRank 0
Default A headache

Paul,

I am glad I'm not the only one it's giving a headache. Most of the things that's been mentioned here, I have tried. Although it works well on my pc, I have it tested on a number of others. If everyone had win media 9 it would be gravy.

With 9 you can use uiMode which solves everything. I would like to change the height, but i will have to write a script because of video on my page. If you guys ever find the perfect solution let me now, I will do the same.

Thanks,
Chris
Reply With Quote
  #8 (permalink)  
Old 02-21-2004, 06:28 PM
paulhiles's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: UK
Posts: 2,089
paulhiles RepRank 0
Default

Hi Chris,

I won't say I've cracked it by any stretch of the imagination.. but if you check out the URL below, you'll find a range of ways of presenting the Windows Media Player.

Various displays for ASF-ASX files
http://www.mamselle.ca/asfdisplays.html

The particular method featured, just displays the streaming data from the track being played.. i.e. Song title, time elapsed, etc. I think this would look a lot cleaner than the black video screen with no animation.

Hope that helps,

Paul
Reply With Quote
  #9 (permalink)  
Old 02-21-2004, 07:35 PM
WebProWorld 1,000+ Club
 
Join Date: Aug 2003
Location: Edmonton, AB, Canada
Posts: 1,527
mikmik RepRank 2mikmik RepRank 2
Default Credit where credit is due

It is Paul H.'s fault

paul wrote (above):
Quote:
Hi Chris,

I won't say I've cracked it by any stretch of the imagination.. but if you check out the URL below, you'll find a range of ways of presenting the Windows Media Player.

Various displays for ASF-ASX files
http://www.mamselle.ca/asfdisplays.html
I will give you that the message is addressed to Chris specifically. I will give you that it was just an effort to be helpful. I will not be proceeding with a 'personal injury' claim based on these facts - and other more important evidence.

I almost could have maybe HURT MYSELF if I moved any faster and explosively.

You see, because of one 'paulhiles' aka the'linkmeister general' and his providing of the above link, and all manner of others, I moved so fast to add it my 'favourites' and my 'hot list' (current most relevent links I am using, on any given day) that I could have pulled something and got hurt! lol

Okay, I just woke up, but thank you very much, I have the WMP SDK and have been trying to find time to get this stuff under my belt, but from day one I have wanted to provide sreaming media from my website and it has always been my number one on my 'things I vow to do as soon as I can' dream list.

I am respected for getting good links, for CSS and design articles, but I always new you were good at everything. My heartiest thanks for this one.

I hope my enthusiasm is showing.

FAQ's.
Media programming and streaming.

Two idea's who's time is nigh. lol

(yes, I try to sound pretentious, and mockingly, satiracally sso 8o])
Reply With Quote
  #10 (permalink)  
Old 02-22-2004, 02:30 AM
WebProWorld 1,000+ Club
 
Join Date: Aug 2003
Location: Edmonton, AB, Canada
Posts: 1,527
mikmik RepRank 2mikmik RepRank 2
Default

It looks here that you can embed AVI's,without a player! http://www.htmlcodetutorial.com/embe...ts/_EMBED.html

http://www.htmlcodetutorial.com/embe...edobjects.html

This whole site is actually very indepth but easy to use and understand.

Tutes on it all
m2 rating = Whoahohoho-ya
:o])

^ ^
O O
0
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 12:48 PM.



Search Engine Optimization by vBSEO 3.3.0