Go Back   CodingForums.com > :: Client side development > Graphics and Multimedia discussions

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-09-2007, 12:46 AM   PM User | #1
keystroke
New Coder

 
Join Date: Aug 2006
Location: Tampa Bay, FL
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
keystroke is an unknown quantity at this point
Trouble embedding Windows Media Player in MySpace blog posts

Hey,

For a few weeks now I haven't been able to embed songs on my MySpace blog. I was able to do it before, but now the code gets deleted each time I try to embed.

If anyone can shed some light on the subject, it would be much appreciated. If you need more information, just ask.

Here are the codes I've tried:

Code:
<embed src="mysongurl" width="300" height="100" type="audio/mpeg mpga mp2 mp3" autostart="false" loop="false">
Code:
<EMBED SRC="mysong" AUTOSTART="true" LOOP="false" HIDDEN="false" Width="145" Height="30">
Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Kristina's Music</title>
<style type="text/css">
body {
text-align:center;
}
</style>
<script type="text/javascript">
function PlayIt(what){
player.document.getElementById('music').innerHTML='<object width="300" height="100" '
      +'classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" '
      +'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="url" value="'+what+'">'
      +'<param name="uiMode" value="full">'
      +'<param name="autoStart" value="true">'
      +'<param name="loop" value="true">'
      +'<embed type="application/x-mplayer2" '
      +'pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" '
      +'showcontrols="true" uimode="full" width="300" height="45" '
      +'src="'+what+'" autostart="true" loop="true">'
+'</object>';
}
</script>
</head>

<body>
<select name="player" onchange="PlayIt(this.value)">
<option value="none">::Choose Song::</option>
<option value="mysong url ">My song Title</option>
</select><br>
<div id="music">
<object width="300" height="100" 
      classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" 
      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="url" value="">
      <param name="uiMode" value="full">
      <param name="autoStart" value="true">
      <param name="loop" value="true">
      <embed type="application/x-mplayer2" 
      pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" 
      showcontrols="true" uimode="full" width="300" height="45" 
      src="" autostart="true" loop="true">
</object>
</div>
</html>
keystroke is offline   Reply With Quote
Old 03-09-2007, 06:02 AM   PM User | #2
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
You can't use javascript on myspace. You can't use the object tag either. Try this
Code:
<embed type="application/x-mplayer2" 
      pluginspage="http://microsoft.com/windows/mediaplayer/en/download/" 
      showcontrols="true" uimode="full" width="300" height="45" 
      src="mysongurl" autostart="1" playcount="9999">
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 03-09-2007, 05:34 PM   PM User | #3
keystroke
New Coder

 
Join Date: Aug 2006
Location: Tampa Bay, FL
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
keystroke is an unknown quantity at this point
Okay, I will try that. But, how does that explain the other two codes I tried? I didn't think that this:
Code:
<EMBED SRC="mysong" AUTOSTART="true" LOOP="false" HIDDEN="false" Width="145" Height="30">
was JavaScript.

Thanks.
keystroke is offline   Reply With Quote
Old 03-09-2007, 05:41 PM   PM User | #4
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
I think the player has to be visible. I don't do myspace very much. Just live with the fact that they don't allow certain things.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 04-01-2007, 05:11 PM   PM User | #5
phils_a_ginger_
New to the CF scene

 
Join Date: Apr 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
phils_a_ginger_ is an unknown quantity at this point
<embed type="application/x-mplayer2"
pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"
showcontrols="true" uimode="full" width="300" height="45"
src="mysongurl" autostart="1" playcount="9999">


how do i make this so i can have more than one song one?please.
phils_a_ginger_ is offline   Reply With Quote
Old 04-04-2007, 09:41 AM   PM User | #6
zoobie
Senior Coder

 
Join Date: Jun 2002
Location: ColoRockyz
Posts: 1,642
Thanks: 1
Thanked 0 Times in 0 Posts
zoobie has a little shameless behaviour in the past
phils...you need to start your own thread
__________________
Zoobie or not Zoobie...That is the problem.
<body onUnload="flush( ! )">
zoobie is offline   Reply With Quote
Old 04-04-2007, 09:09 PM   PM User | #7
ArcticFox
Regular Coder

 
ArcticFox's Avatar
 
Join Date: Jan 2004
Location: Vostok Station, AQ
Posts: 602
Thanks: 35
Thanked 3 Times in 3 Posts
ArcticFox can only hope to improve
MySpace does not like the EMBED tag. You'll have to do it with OBJECT tags only.
__________________
<div> - putting your mind in a box since 1997
ArcticFox is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


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

Forum Jump


All times are GMT +1. The time now is 12:32 AM.


Advertisement
Log in to turn off these ads.