#1 (permalink)  
Old 01-01-2004, 01:53 PM
Registered User
 
Join Date: Jan 2004
Location: Germany
Posts: 36
Send a message via AIM to fabter Send a message via Yahoo to fabter
Question embed Windows Media Player 9

Hello,

I want to embed a wmv-file. Now I'm trying to embed the WMP9. The clip should be displayed in an embedded WMP, I don't want to show it in the big WMP. I tried many things, but nothing worked. This is the code, I thought it should work:
Code:
<object id="player" classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="240" height="200">
<param name="AutoStart" value="true">
<param name="uiMode" value="full">
<param name="URL" value="../../videos/mi.wmv">
</object>
Why doesn't it work?
And how can I embed the WMP9 into Gecko-based Browser?
I found something which said, that I should embed WMP as an applet, but that didn't work, too.
Reply With Quote

  #2 (permalink)  
Old 01-05-2004, 09:15 PM
curtiss's Avatar
Moderator
 
Join Date: May 2003
Posts: 1,445
Have you tried the "embed" tag, instead of all that other messy code? Embed should embed the video for you.
Reply With Quote
  #3 (permalink)  
Old 01-06-2004, 04:10 AM
Registered User
 
Join Date: Jan 2004
Location: Germany
Posts: 36
Send a message via AIM to fabter Send a message via Yahoo to fabter
Yes, I tried the embed-tag, but it didn't work.
I think I won't try it anymore. I will just put a link to the wmv-file on the page.
Reply With Quote
  #4 (permalink)  
Old 01-09-2004, 03:55 PM
ratmonkey007's Avatar
Registered User
 
Join Date: Jan 2004
Posts: 1
Lightbulb

:driver <--- I think it's actually driving stickshift

well, I got the player on my webpage, and it actually works quite well.

here is the code for it:



<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="THIS IS WHERE YOU PUT THE MUSIC/VIDEO LINK">

<PARAM NAME="animationatStart" VALUE="true">

<PARAM NAME="transparentatStart" VALUE="true">

<PARAM NAME="autoStart" VALUE="true">

<PARAM NAME="showControls" VALUE="true">

<PARAM NAME="ShowDisplay" VALUE="true">

</OBJECT>



I hope it helps!
MORE EVES!!!!!
(FYI, Eves is a musician. www.freq.com)
Reply With Quote
  #5 (permalink)  
Old 01-12-2004, 04:35 AM
Registered User
 
Join Date: Jan 2004
Location: Germany
Posts: 36
Send a message via AIM to fabter Send a message via Yahoo to fabter
Thank you ratmonkey 007,

but I already tried it like you suggested and it didn't work. It only works with the old WMP, but not with WMP9. But that doesn't matter anymore, I just linked to the wmv-file.
Reply With Quote
  #6 (permalink)  
Old 02-09-2004, 05:41 PM
Registered User
 
Join Date: Feb 2004
Posts: 3
ratmonkey007,

is there a way to play multiple files using that code. I have a big video file and the host i use has a 1mb size limit. So i broke up the video and now i want it to all play at once. thanks
Reply With Quote
  #7 (permalink)  
Old 05-06-2004, 03:30 PM
Registered User
 
Join Date: May 2004
Posts: 1
Quote:
Originally posted by fabter
Thank you ratmonkey 007,

but I already tried it like you suggested and it didn't work. It only works with the old WMP, but not with WMP9. But that doesn't matter anymore, I just linked to the wmv-file.
Hi Fabter,

I noticed your code has the classid for older versions of Windows Media Player: 6BF52A52-394A-11d3-B153-00C04F79FAA6.

Version 9 has a classid of 22d6f312-b0f6-11d0-94ab-0080c74c7e95

I also had problems embedding WMP9 content until I changed the classid.
Reply With Quote
  #8 (permalink)  
Old 06-05-2004, 11:12 PM
mrmckoy's Avatar
Registered User
 
Join Date: Jun 2004
Posts: 11
Send a message via AIM to mrmckoy Send a message via Yahoo to mrmckoy
embedding windows media player

Do I have to change the class ID for every version of media player. I want my files to be able to play on every version.
Reply With Quote
  #9 (permalink)  
Old 06-11-2004, 11:21 PM
Registered User
 
Join Date: Jun 2004
Posts: 2
Send a message via AIM to msldylost
Unhappy

SOMEONE PLEASE PLEASE PLEASE HELP!! I DESPERATELY NEED THIS

http://www.neptune.com/users/mjm5226...P/mjm52262.WMV


TO PLAY .. ITS A VIDEO AND I TRIED ALL THE CODES EVEN REPLACIN THE ID THING BUT IT DOESNT PLAY! PLEASE I NEED IT ASAP .. SOMEONE PLEASE HELP ..
Reply With Quote
  #10 (permalink)  
Old 06-11-2004, 11:33 PM
Registered User
 
Join Date: Jun 2004
Posts: 2
Send a message via AIM to msldylost
DOES ANYONE EVEN COME HERE ANYMORE?!?!? :drown
Reply With Quote
  #11 (permalink)  
Old 06-15-2004, 11:52 AM
mrmckoy's Avatar
Registered User
 
Join Date: Jun 2004
Posts: 11
Send a message via AIM to mrmckoy Send a message via Yahoo to mrmckoy
can you include more then one classid?

Can I include more then one CLassID in the <object> embed? I have the clasid ID for windows Media player 9 included in a website but not 7.1. However MACs run media player 7.1 and I can't get it to play there. Any ideas?
Reply With Quote
  #12 (permalink)  
Old 06-29-2004, 07:37 AM
Registered User
 
Join Date: Jun 2004
Posts: 2
HTML/JAVA Code for Windows Media Player

This is the Java script i use to put Windows Media Player on my webiste which I am in the process of making I'd imagine this would be the easiest type to use. Just put the video names in the sections were I've put "ENTER FILE NAME HERE"

<!--- START CONTENT --->

<!--- else NOT sponsored --->
<div style="margin:14px; font-size:16px; color:"black" align="center">
<b>ENTER FILE NAME HERE(THIS WILL BE YOUR TITLE OF VIDEO).wmv</b></div><br>
<object id="MediaPlayer1"
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
standby="Loading Microsoft Windows Media Player components...">
<param name="Filename" value="ENTER FILE NAME HERE.wmv">
<param name="AnimationAtStart" value="true">
<param name="TransparentAtStart" value="false">
<param name="ShowControls" value="true">
<param name="PlayCount" value="true">
<embed width="320" height="285" src="ENTER FILE NAME HERE.wmv" controller=true autoplay=true playeveryframe=false pluginspage="plugin.html">
</object>
<br><br>

<!--- END CONTENT --->
Reply With Quote
  #13 (permalink)  
Old 06-29-2004, 08:02 PM
Perri29's Avatar
Registered User
 
Join Date: Jun 2004
Location: US
Posts: 27
Send a message via Yahoo to Perri29
Play more than one file?

How do you get the player to play more than one song?
Is that a possibility?
__________________
"Just another freak in the freak kingdom." H.S. Thompson

PR (www.site418.com)
Reply With Quote
  #14 (permalink)  
Old 06-30-2004, 04:19 AM
Registered User
 
Join Date: Jun 2004
Posts: 2
Ill Look Into That

Good question, I'll look into this, I'm not entirely sure, for my website I only use Windows Media for videos, I do this by putting a video on a seperate page every time, but I'm sure i can find out.
Reply With Quote
  #15 (permalink)  
Old 07-01-2004, 01:36 AM
Perri29's Avatar
Registered User
 
Join Date: Jun 2004
Location: US
Posts: 27
Send a message via Yahoo to Perri29
How to play multiple files in player...

After some searching and a lot of testing... Here's how I coded the embedded Media Player 9 to play more than one file in succession:

One of two files need to be created: either an ".asx" or a ".m3u" file. These files are
created through the Media Player itself.

First create a "playlist" of ".mp3" files that you want to play on the web page:

1. Choose "new playlist" in the media player tool bar

2. Name it, then begin selecting ".mp3" files or video files from the media library

3. Place these files in the "new playlist" you just created.

4. Once you have all the files you want in the playlist:

5. Select your playlist (highlight it)

6. Go to "file" in the media tool bar

7. Choose "save playlist as"

8. In the window that opens you will create your ".asx" or ".m3u" file

9. Name it

10. In the "save as type" box use the drop down menu to choose the file type

**You can choose either ".m3u", "any (.asx, .m3u, or .wpl)"
(I chose to use the .m3u format because by choosing "any" seems to only save your file in the ".wpl" format, which did not appear to be applicable to the embedded
player code according to all the information I could gather in my searches).


Now that you have created your ".asx" or ".m3u" file:

11. Upload this file and all ".mp3" files associated with it (what's in your playlist) to your server.

The code for the embedded player, using these playlist files is as follows:

<OBJECT ID="mediaPlayer"
CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" width="300" height="120"
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="http://myserver.com/New Playlist.m3u">
<PARAM NAME="animationatStart" VALUE="true">
<PARAM NAME="transparentatStart" VALUE="true">
<PARAM NAME="autoStart" VALUE="false">
<PARAM NAME="showControls" VALUE="true">
<PARAM NAME="ShowDisplay" VALUE="true">
<PARAM NAME="loop" VALUE="true">
</OBJECT>

Of course you'll need to adjust the width and height if you'll be using this to play videos; at the current settings listed above only the player controls and track info will be visible.

***Example of this working player on a page***
http://help.javalotjive.com/media9_example.html
__________________
"Just another freak in the freak kingdom." H.S. Thompson

PR (www.site418.com)

Last edited by Perri29; 07-01-2004 at 09:59 AM.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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


All times are GMT -5. The time now is 01:12 PM.

 
Bitrix
Clicky Web Analytics
CloudContacts
Maxtango


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter