473,326 Members | 2,175 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Modding a RA player code to play random music

Does anybody know how to modify the following so that it does a random
play from the .rpm file?
<!-- --><embed SRC="http://your-url.rpm"
type="audio/x-pn-realaudio-plugin" CONTROLS="Control" AUTOSTART="true"
LOOP="true" VOLUME=100% WIDTH=400 HEIGHT=100 CONSOLE="MYCONSOLE"><!--
-->

Jul 23 '05 #1
4 3381
ja****@eudoramail.com wrote:
Does anybody know how to modify the following so that it does a random
play from the .rpm file?

<embed SRC="http://your-url.rpm"
<embed> is a proprietary, non-standard element that should not be used.
You should use <object> instead.
type="audio/x-pn-realaudio-plugin" CONTROLS="Control" AUTOSTART="true"
Don't try to start playing the audio without the users permission. The
user should have to take some action, such as clicking a play button,
for example.
LOOP="true" VOLUME=100% WIDTH=400 HEIGHT=100 CONSOLE="MYCONSOLE"><!--


It's also rude to make the track play over and over again. It would get
irritating hafter a while, though it does appear you've attempted to
provide controls, using the control attribute and/or the console
attribute. I have no idea what those attributes are supposed to do (I
can only guess), since they are undefined in any HTML recommendation.

You also have no right to attempt to alter my volume, I set it where I
want it.

This is the standards compliant way of including an audio file, though I
have not tested it to see which browsers will support it.

<object type="audio/x-pn-realaudio-plugin" data="http://your-url.rpm"
height="100" width="400">
<p>Don't forget to write some alternate content here for users that
don't support that format. It should serve the same purpose, not
describe the track in detail.</p>
<p>If it's purely presentational, as a background sound (as it
appears, since you've tried to set it to loop continuously), then
I don't recommend you include the audio at all.</p>
</object>
--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://SpreadFirefox.com/ Igniting the Web
Jul 23 '05 #2
Lachlan Hunt <sp***********@gmail.com> wrote:
This is the standards compliant way of including an audio file, though I
have not tested it to see which browsers will support it.

<object type="audio/x-pn-realaudio-plugin" data="http://your-url.rpm"
height="100" width="400">


Standard compliance does not make it right, and since when does audio
have a width and height? :)

--
Spartanicus
Jul 23 '05 #3

"Spartanicus" <me@privacy.net> wrote in message
news:3o********************************@news.spart anicus.utvinternet.ie...
Lachlan Hunt <sp***********@gmail.com> wrote:
This is the standards compliant way of including an audio file, though I
have not tested it to see which browsers will support it.

<object type="audio/x-pn-realaudio-plugin" data="http://your-url.rpm"
height="100" width="400">


Standard compliance does not make it right, and since when does audio
have a width and height? :)


The dimensions apply to the player to be embedded in the page. (I just
noticed the smiley--ignore what I just said I've I'm belaboring the
obvious.)

Jul 23 '05 #4
"Harlan Messinger" <h.*********@comcast.net> wrote:
><object type="audio/x-pn-realaudio-plugin" data="http://your-url.rpm"
> height="100" width="400">


Standard compliance does not make it right, and since when does audio
have a width and height? :)


The dimensions apply to the player to be embedded in the page.


Content types should always be disassociated from specific clients,
hence the type in the above is incorrect since it appears to refer to a
specific client, it should instead refer to the type of data. Parameters
for specific clients such as height and width should be supplied using
the param element.

--
Spartanicus
Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: alice | last post by:
I've been trying for a long time to figure this out, to have a page with several MP3 clips, and each one having a custom start and stop button next to them to play the track. I finally found a bit...
2
by: FlashForumKB | last post by:
Here is a chance for you to make my developers look bad. I have hired these guys to development my website which, in part, has music demos available to my users. These demos must include the...
2
by: waterox | last post by:
Hi, I am trying to hack this mp3 player so that it displays 3 levels of hierarchy instead of 2. Check out the current player here http://www.yanwhite.com/staging/GetGoodMusic/music.htm ...
1
by: Ringo | last post by:
I'm trying to use windows media player in an app. I can give it an mp3 and it plays it, but if I give it a playlist it will not play and even the play button on the control is not active. ...
5
by: Anil Gupte | last post by:
How do I embed Windows Media Player so I can control it with VB code. I am familiar with embedding in a web page like this: *************** <embed src="Test.asx" width=320 height=300...
14
by: dE|_ | last post by:
For months I have been happily using a downloaded JS file and inline script to embed and control the parameters of SWF files which I use as mp3 players with actionscript. The last so.addParam...
7
hsriat
by: hsriat | last post by:
Please suggest me a decent music player. My requirements are: JavaScript is able to add songs to the playlist dynamically. JavaScript can select which song to play. I don't care for 'music not...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.