Modding a RA player code to play random music

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jassan@eudoramail.com

    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"><!--
    -->

  • Lachlan Hunt

    #2
    Re: Modding a RA player code to play random music

    jassan@eudorama il.com wrote:[color=blue]
    > 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"[/color]

    <embed> is a proprietary, non-standard element that should not be used.
    You should use <object> instead.
    [color=blue]
    > type="audio/x-pn-realaudio-plugin" CONTROLS="Contr ol" AUTOSTART="true "[/color]

    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.
    [color=blue]
    > LOOP="true" VOLUME=100% WIDTH=400 HEIGHT=100 CONSOLE="MYCONS OLE"><!--[/color]

    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://GetFirefox.com/ Rediscover the Web
    http://SpreadFirefox.com/ Igniting the Web

    Comment

    • Spartanicus

      #3
      Re: Modding a RA player code to play random music

      Lachlan Hunt <spam.my.gspot@ gmail.com> wrote:
      [color=blue]
      >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">[/color]

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

      --
      Spartanicus

      Comment

      • Harlan Messinger

        #4
        Re: Modding a RA player code to play random music


        "Spartanicu s" <me@privacy.net > wrote in message
        news:3okgr0hrjp motb36nunptvk1k k62safkii@news. spartanicus.utv internet.ie...[color=blue]
        > Lachlan Hunt <spam.my.gspot@ gmail.com> wrote:
        >[color=green]
        > >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">[/color]
        >
        > Standard compliance does not make it right, and since when does audio
        > have a width and height? :)[/color]

        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.)

        Comment

        • Spartanicus

          #5
          Re: Modding a RA player code to play random music

          "Harlan Messinger" <h.messinger@co mcast.net> wrote:
          [color=blue][color=green][color=darkred]
          >> ><object type="audio/x-pn-realaudio-plugin" data="http://your-url.rpm"
          >> > height="100" width="400">[/color]
          >>
          >> Standard compliance does not make it right, and since when does audio
          >> have a width and height? :)[/color]
          >
          >The dimensions apply to the player to be embedded in the page.[/color]

          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

          Comment

          Working...