473,770 Members | 2,143 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="Contr ol" AUTOSTART="true "
LOOP="true" VOLUME=100% WIDTH=400 HEIGHT=100 CONSOLE="MYCONS OLE"><!--
-->

Jul 23 '05 #1
4 3401
ja****@eudorama il.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="Contr ol" 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="MYCONS OLE"><!--


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

"Spartanicu s" <me@privacy.net > wrote in message
news:3o******** *************** *********@news. spartanicus.utv internet.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.*********@co mcast.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
2924
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 of code that does this, but it's made for only one mp3 file. I don't know enough about javascript to customize the code myself. I know there probably needs to be an "array" of some sort, but I need some help figuring out where and how that works....
2
3926
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 entire piece with a spoiler in the background so users can not record them freely. The files must be secure! My original request was to have them build an application that merged the two files (spoiler and original music) into a single mp3 file and have...
2
1967
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 Currently it has kind of 3 levels, but using 2 buttons for the top level. I want all 3 as list boxes. So that listbox1 has main categories, listbox2 displays subcategories and listbox3 displays the tracks. Here is the actionscript.. //setting it up
1
3533
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. btn_open_mediaFile works fine, tn_open_playlist acts likes nothing happened except I see the name of the playlist. What am I missing? Also, if an mo3 is playing, loading a playlist stops it from playing. here is my code
5
3414
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 autostart=True type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" name="MediaPlayer1" showcontrols=1 showstatusbar=1</embed> **************** I have also created a WM Player control in a VB Windows Application. But
14
1770
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 controls the simple function auto-play; OFF but since recent real player installations this has been taking over starting them all off and even offering downloads. This may be annoying for some writers but it is critical for the site I use this...
7
2906
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 being able to download'. Player doesn't have to have visible controls. Just a Play button is enough (that too controlled by JS) Not a solution then some pointer towards how to start with?
0
9619
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10260
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9910
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6712
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.