PDA

View Full Version : media player controls in myspace



svhkid
May 28th, 2006, 21:22
Does anybody know what code I should use to insert music into the background of a myspace page? I have tried some scripts, but they all end up with the "play, pause" button not showing or the actual music file to chop up.

albert_chu
May 31st, 2006, 02:43
what type of script do you use?

if ur using the embed tag, make sure u have the [showcontrols="true"] to show that you are viewing the media controls.

if your music becomes choppy, its because the file is either too big and is taking its time downloading...you should try using an object tag in that case to help the file to buffer

Phoenix-systems
June 21st, 2006, 03:29
if you´re using your origional videos, you should do some 2 or 3 things;

you should compress the video/audio to reasonable size before hosting it
on some place. try to use windows format for streaming, use windows
media encoder or some other toll that allows windows format.

for streaming mp3, never use something with less than 96kbps, or it will
sound crappy. you should use wma files, and at a 64kbps bitrate you get
exelent "near cd" quality...

if you want to stream video, use at least a 364kbps wmv format, 300 for
the video and 64 for the audio. that will give you very reasonable results.

now, check the speed of the host where your file are. it must be able to deliver your content.

finally, try this simple html code, works fine in every site, exept forums.
this is very simple and it will stream your content. you should change
values like size and url at your taste.

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<div align="center">
<object width="384" height="288">
<embed src="HERE PUT THE URL OF YOUR FILE" width="384" height="288"></embed> </object>
</div>
</body>
</html>

cheers:)

edit- you can also try the following. it is "real streaming" but
people must click a link to view content. It will work out better,
but as i said, won&#180;t play until people click the link.


<ASX Version = "3.0">
<entry>
<Ref href = "PUT THE URL OF YOUR FILE HERE"/>
</entry>
</asx>


now just copy/paste that above to note pad, save and rename
extension to wmx

after that post it in any place, forums included, like "myfile.wmx". It will automaticly
open Media player and start streaming. give it a try.
you can stream mp3 instaed of wma this way and it will open and start playing very fast!.

you can also stream to winamp. it&#180;s like;

[playlist]
File1=URL OF YOUR FILE (withouth any "")
Title1= yor title (without any "")
Length1=-1
NumberOfEntries=1
Version=2


copy/paste above to note pad, save, rename extension to pls and
post link. it is the same as wmx. people must click to play.
here no worryes about scren size, if it&#180;s a video file, it will get your size and play.
works fine with mp3, and wma also.