I do not have time to troubleshoot people's code. (Hopefully I will again in the future).
I do not have much time to answer questions (but if it is a quick answer, that only takes me a few minutes, I will try to answer).
I really recommend the following site, for myspace customizing questions: Official Myspace Customizing Forum
That is the most reliable source, and the people I know who enjoy helping, and are quite good at it, tend to hang out there.

Friday, January 13, 2006

myspace music player hide remove play

Example of what hiding controls on a youtube video will do:







Contents
Alternatives and Recomendations
MySpace 2.0 Hide Player While Still Allowing it to Play
MySpace 1 Hide Player While Still Allowing it to Play
Notes related to the Older Code being used on Many Sites

Remove controls from YouTube Video
Remove controls from YouTube Video
Disable the Pause/Stop button on Myspace Music Player

Alternatives and Recommendations
RECOMMENDATION: If you are looking for alternatives to hiding the player, such as adding color (to make it blend in with your page and/or minimizing it (without removing it), adding skin, moving the player to the top corner, please see the following articles:
Apply a Skin and/or Resize Player, add border and more
Minimize the myspace music player without removing it


Notes related to the Older Code being used on Many Sites
[note: There have been reports that the hide code being used, for the standard player, no longer works. In FF it prevents the player from playing. I tested my code, and the more common code found in cyberspace. I found the symptom to be real, but not consistent. I have provided alternate code below, which does not cause this problem. ]

I am no longer recommending the "Move it off the Page Strategy" or "Resize it to Zero Strategy"
Both of these seem to have a high occurrence of causing the player to Not play in FireFox. My test results were not conclusive. Sizing to zero had a higher rate of failure to play than shifting the player off of the visible page.

MySpace 2.0 Hide Player While Still Allowing it to Play
Place this code in the css section of the customize profile section:
{!code author:Eileen!}
{!for terms of use go to xiii.us/tou/ }
.i{display:none;}
div.musicPlayerModule {position:absolute;
top:0px; left:0px;
width:1px; height:3px;
overflow:hidden;
opacity:0.0013;
filter:alpha(opacity=0.013)}


MySpace 1 Hide Player While Still Allowing it to Play
I had the lowest play failure rate using the strategy shown below:
<style>
<a class=i href="http://xiii.us/eGen/mpSkin.php">skin, move, size myspace music player</a>
{!code author:Eileen!}
{!for terms of use go to xiii.us/tou/ }
.i {display:none;}
table table div {position:absolute; top:0px; left:0px; width:auto !important; }
table table div object {opacity:0.001; filter: alpha(opacity=0.01); width:40px; height:50px; position:absolute; top:0px; left:0px; }
table table td.text div,
table table table div,
div table table div {position:static;}
table table table div object, table table td.text div object, div table table div object {position:static; opacity:0.9999; filter:none; width:auto; height:auto;}

</style>
The position:absolute removes the player div from the page flow, so that it does not take up space. However, the carriage returns are still there.
You can remove these by using a negative top margin on the interests table, OR a negative bottom margin on the url table.
Add the following lines to the above style block:
br {line-height:13px}
table.interestsAndDetails {margin-top:26px}

Also, if you care about some VERY old versions of Safari:
table table div object {-kthml-opacity:0.01}
table table td.text div object {-kthml-opacity:1.0}

If you care about Very old versions of Mozilla or FireFox you will need this:(add this to a style block):
table table div object (-moz-opacity:0.01}
table table td.text div object {-moz-opacity:1.0}


Remove controls from MySpace Video
[code coming soon]

Remove controls from YouTube Video
And example of what this code will do can be found near the top of this page

I am sure that those who want to do this, also want to autoplay, and loop the video, so I will include those options in the code.

Go to the youtube page, and play the video.
Retrieve the value after v=
i.e. example:
http://www.youtube.com/watch?v=eIabgPX14R4

I want the eIabgPX14R4
Replace BOTH occurrences of eIabgPX14R4 in the following code, with the value of your youtube video:
<a class="i" href="xiii.us/ms/music-player-hide">Hide YouTube Video Controls Code By Eileen
<style>
x.i i, .i {display:none;}
div.xiiiYouTube {width:320px; height:240px !important; overflow:hidden; border:0px hotpink dashed; position:relative; top:0px;}
object.xiiiYouTube {position:absolute; clip: rect(1px, 320px, 240px, 1px)}
</style>

</a>
<div class="xiiiYouTube">
<object type="application/x-shockwave-flash" allowScriptAccess="never" allowNetworking="internal" height="270" width="320" class="xiiiYouTube" data="http://www.youtube.com/v/eIabgPX14R4&autoplay=1&loop=1">
<param name="allowScriptAccess" value="never" />
<param name="allowNetworking" value="internal" />
<param name="movie" value="http://www.youtube.com/v/eIabgPX14R4&autoplay=1&loop=1" />
<param name="wmode" value="transparent" />
</object>
<i class="i"> END code to remove Video Controls </i>
</div>
</a>


Disable the Pause/Stop button on Myspace Music PlayerI really hope you are enjoying the music I choose for this page.

There are multiple ways to disable the Pause/Stop button, while forcing anyone reading your page to listen to your music (or shut their sound off).

My favorite is to cover the button (and the rest of the player) with a clear gif.
To do this you must either have a pretty good idea of how far above your interests (or from the top of the page) your player is, or used absolute positioning to move your player.

[Code to be posted soon]

In IE, if you have a transparent background, to your main table, you can just set the z-index of the div the player is in, to -1.
Then it shows, but has a table over it, so it can not be accessed.

[Code to be posted soon]



Thank you. Have a Nice Day


hiding a music player on myspace
minimize myspace music player
my song won't play in FireFox IE fix

Labels:

43 Comments:

Blogger mischa said...

luv it. thanks for sharing +finally the code works on firefox too :P +

27/11/07 14:20  
Anonymous Anonymous said...

that is to cool i had been lookin all over for a code that let me hide my song box but still let it play and i found yours you are too cool thanks again

23/12/07 21:25  
Anonymous charlie said...

its about time, i hate when i can't hear music on my myspace. hah.

bt add me if you want

myspace.com/charlie93nukka

16/4/08 12:15  
Anonymous Nina. said...

omg. thank you so much this code works. finally a working code. :) i was getting so annoyed not being able to hear my song.

1/6/08 10:17  
OpenID Chia915 said...

Ahh i need help!
I put it in...and the width is short and the length is long and it wont center =((((
And I want the width to be longer than the length! Add me?
myspace.com/apsaysyouknowyoureahoe

29/7/08 18:29  
Anonymous Anonymous said...

omg thankks soo much!
your code for the hiding the player works so well!
i've been searching for that code for about half a year already!
very much appreciated[:

30/7/08 16:10  
Anonymous Anonymous said...

this worked perfectly! thanks sooooo so so much!

18/8/08 07:52  
Blogger kallylinh said...

I have tried a bunch of codes to hide my music player. But none of them worked or would do something funky like resize my youtubes or stretch out my tables. This was exactly what I needed thank you!!

21/8/08 19:23  
Anonymous Anonymous said...

do you have a way to mute the sound ?

Thanks
Bob

27/8/08 15:50  
Anonymous Sorrel said...

Hey Eileen,

I've made my profile so that it looks like it's a private page.
I originally had the intention of keeping the player hidden completely, but now i would like it to play, whilst still being hidden.

I can do this easily on firefox, but for some reason i can't unhide the player in IE.

I'm stumped :S

my page is at:
myspace.com/sozza69

26/9/08 19:24  
Anonymous Anonymous said...

it doesnt work

30/11/08 11:11  
Blogger u∃∃l!∃ said...

You need to be more specific.
What exactly does not work?

If you are more specific then I can see if
1) myspace has made a change since I last tested the block of code

2) there is some block of code, that when combined with this code, will make it not work (I can at least make a note of the situation).

3) Help you make it work
(For this I would need a link to the page you are attempting to use the code on.)

30/11/08 13:07  
Blogger dazeydaze said...

This post has been removed by the author.

5/12/08 00:30  
Blogger dazeydaze said...

This post has been removed by the author.

5/12/08 00:51  
Blogger dazeydaze said...

Hey Missy Myspace!!!

You are one of my favorite people in the world & I thank you for all the great help you are giving us here. I also enjoy reading your blogs about other topics. I like the way you write.

I have been working in code for almost 4 months now.

Here are a few pages I have made so far (mine is first)

myspace.com/studiomedia

myspace.com/youvee

myspace.com/potzeemusic

I keep hoping to see an article or two from you on how to code for myspace 2.0 and am so happy that I have finally found one.

Thank You u∃∃l!∃

Much Respect,
dazeydaze

((ps- sorry i keep deleting and reposting this, i had the url wrong on potzee's page))

5/12/08 05:20  
Blogger Delani said...

can't wait for the codes to hide the play/pause buttons! that'll be fun, thanks for the help ^-^

29/12/08 22:07  
Anonymous Anonymous said...

thank you
but how do you resize the video
after putting the remove controls code?
coz whenever i try resizing it, the video puts
the controls back O_O

15/1/09 19:07  
Blogger Avi said...

Hey bud your hide youtube scroll bar is dope, check it:

http://fifthelementproductions.com/demoreel.html

My only problem is that the only way I know how to center it is to change the numbers of the pixels on the (position:relative)

But I want it to center with my page not be a cretin number of pixels from the left...

The way I've dont it is better then nouthin but... when you move the page size or monitor size changes the vid still stays 200px from the left and again sometimes is off center...


Can you please please tell me a way to make it center on its own PLEASE?

5/2/09 21:24  
Blogger u∃∃l!∃ said...

I did notice that your use of the code, to hide the youtube controls, worked on FireFox but not IE.
However, my example (used on this blog post) is working in both browsers.
So I will have to dig into your code deeper to see what is going on, and why it is not working as I would expect it to.

To center do not use position:relative.
Use position:absolute
either measuring from center top, or from top left (if you have a centered parent container or known size).

Your parent container is not centered either.

Did you try using the center tag?

It is really hard for me to make a copy and test these things, because you used abbreviated paths for images and style sheets.
(meaning if I make a copy to test changes on, it doesn't know where these things are, unless I go to the trouble to figure it out and add in the paths).

5/2/09 23:16  
Blogger Avi said...

Thanks for your quick response...

I don't even know what a "centered parent container" or "abbreviated paths" are...

All I did was take your code and change the.... Pixel size to to fit a video that was 640 bye 385 and put in my video URL plus ap=%2526fmt%3D22 to make it HI-DEF

If you give me your email I can attach in a TEXT EDIT DOC the code I used...


Please please help me make it work in IE and in FF and be in the center...

Please please please, I have been trying to figure out a similar solution for like 12 hours before I ran in to your post...

Please please please please......

-Avi

6/2/09 02:05  
Blogger Avi said...

Ok OK, So... Now if you take a look I got it back to your original script, but I have it centered (Kinda) with The (position:relative) as I am not complex enough to understand the other sheazy you were talkin about...

So...

Last but not least I'd like to make the player 385 x 640 and correctly centered....

Can you please help me out...

Anytime I change the size it no longer works in IE!

Shoot me your email and I will send you a TEXT EDIT file of what I have in there now...

Again, thanks alot for your time...

-Avi

6/2/09 04:49  
Blogger u∃∃l!∃ said...

Sending me the text file won't do me any more good then my doing a view source to view the file.

Anyway,
If you add a few <center> tags, one before
<div id="content1"
to center that div, and those within it,
and then one before
<div class="xiiiYouTube">

It seems to handle the needed centering.

You should probably figure out where to close these tags as well.
The close center tag should go just after the closing of the div, you placed the center tag in front of (although not closing them seemed to work, it is sloppy).

Then make sure your clip values, are large enough, that you are only clipping off the bottom of the player, and not more then you want to clip.
Maybe use 640 as the right clip value.
i.e.
clip: rect(1px, 640px, 355px, 1px)

For clip to work, you do have to use position absolute on the object.
If your object is the same size as your div, positioning top left, within the containing div is fine.
i.e.
object.xiiiYouTube {position:absolute; top:0px; left:0px; clip: rect(1px, 640px, 355px, 1px)}

If not, then you want to position from top center of the container
i.e.
position:absolute; top:0px; left:50%; margin-left:-320px

The margin-left value needs to be half the width of what you are trying to center.

Make sure that the containing div has a position statement, so that it is used as the position reference.
i.e.
div.xiiiYouTube {position:relative;}

6/2/09 18:21  
Blogger Avi said...

I got it like 30 min ago!

Oh Ya, Take a look...

http://fifthelementproductions.com/demoreel.html

You likey?

Add me up no?

http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=18987747

Man, Now if I can get the dumb-ass banner in my myspace page to center I'll be on top of my game...

Thanks a lot for your time!

-Avi

6/2/09 18:36  
Anonymous Sammi said...

i cant get it.
its confusing
can somebody do it for me if I give them my video.

i can get it to autoplay.
i just cant hide the pause button
:(

16/2/09 18:36  
Anonymous Anonymous said...

It doesn't work anymoree.

5/4/09 02:58  
Anonymous Anonymous said...

Thank you so much [:

9/4/09 19:43  
Anonymous Anonymous said...

OMGGG I LOVE YOU

17/4/09 03:36  
Anonymous anonymous said...

to hide my music but still play it on myspace 2.0
it does not work!!!i need some major help,plz:]

20/5/09 20:36  
Anonymous Anonymous said...

I tried the myspace 2.0 hide song while still play thing and it didnt work :/

24/5/09 11:56  
Anonymous Anonymous said...

i really want to hide just the bottom bar on a youtube video.
but yours makes the video like really tiny and i've tried to sort out the height and that but it still doesn't work. |:

4/6/09 12:32  
Anonymous BABYCAKES said...

Hello. I tried using your code to hide the timeline and play button of a youtube video.
I understand how to replace the value and what not. I did so. I didn't touch the size of the video. Just replaced the value and now instead of a video it's a big space where the video should be but no sound, no video, just a big square.

I included my rp myspace. So if you could, please get back with me.

11/6/09 10:21  
Anonymous Kalia said...

i don't think it works on my profile [myspace 2.0]
it hides my playlist, but my song doesn't play..
-.-'
help?

16/6/09 15:57  
Anonymous Anonymous said...

yay the code to hide my music player on 2.0 worked! thank you!

2/7/09 23:34  
Anonymous Anonymous said...

My music is not playing!!! But it's hidden?
How come it worked for other people? dang it!

27/7/09 23:05  
Anonymous Anonymous said...

-_-

sadly i still dont understand how to do this lol

i got the value thing done but when I replace the value and just paste the code it autoplays and loops the video but doesnt hide the play/pause buttons

help please?!?

24/8/09 17:27  
Anonymous Anonymous said...

oh yeah and the video im using is a Youtube video

24/8/09 17:28  
Anonymous sonson :D said...

HELLO!

Ive gotta question at my community page I have to paste it into an extrawindow so the code will be this after it convertet x.x

[MEDIA=http://www.youtube.com/v/lLU_kIYeSC0] width=389 height=325 type=application/x-shockwave-flash wmode=transparent[/MEDIA]

& I want to hide the control bar. anyone help?

1/9/09 08:59  
Anonymous Stephanie said...

OMGGG ! Your such a life saver:D
thank you very muchh<33

10/9/09 22:45  
Anonymous Samantha said...

i put the code in to hide the control buttons and they didn't hide, i need help.

17/10/09 12:34  
Anonymous Anonymous said...

YES I GOT WHAT I WANTD! FINALLY FOUND A SITE THAT WORKS!!XD lol

18/10/09 17:21  
Anonymous jackie said...

Argh, I dont get it..

2/11/09 18:56  
Anonymous Anonymous said...

u∃∃l!∃, regarding pause (nice post still):

why isn't clicking with LEFT-BUTTON same as pressing SPACEBAR (pausing the video)?

LEFT-BUTTON is more like interruption, it isn't "smooth".

3/11/09 01:35  

Post a Comment

Due to Excessive Spam, I have turned on comment moderation.

Links to this post:

Create a Link

<< Home