<embed> tag not working properly on linux

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Annu

    <embed> tag not working properly on linux

    Hi
    I need help on <enbed> tag.
    Following code(No 1) is working properly on windows but on linux code
    no.2 is not working
    Code No 1:
    <EMBED type='applicati on/x-mplayer2'

    pluginspage='ht tp://microsoft.com/windows/mediaplayer/en/download/'
    id='mediaPlayer ' name='mediaPlay er' displaysize='4'
    autosize='-1'
    bgcolor='darkbl ue' showcontrols="t rue" showtracker='-1'
    showdisplay='0' showstatusbar='-1' videoborder3d='-1'
    width="320" height="285"
    src="C:\music\p op\artist\song. mp3" autostart="true "
    designtimesp='5 311' loop="true">
    </EMBED>

    Code No 2:
    <EMBED type='applicati on/x-mplayer2'

    pluginspage='ht tp://microsoft.com/windows/mediaplayer/en/download/'
    id='mediaPlayer ' name='mediaPlay er' displaysize='4'
    autosize='-1'
    bgcolor='darkbl ue' showcontrols="t rue" showtracker='-1'
    showdisplay='0' showstatusbar='-1' videoborder3d='-1'
    width="320" height="285"
    src="/var/www/html/song.mp3" autostart="true "
    designtimesp='5 311' loop="true">
    </EMBED>

    Please tell me the reason and correction.
    Thank You.

  • Jukka K. Korpela

    #2
    Re: &lt;embed&gt ; tag not working properly on linux

    Annu wrote:
    [color=blue]
    > I need help on <enbed> tag.[/color]

    Drop it.
    [color=blue]
    > Following code(No 1) is working properly on windows[/color]

    It only works on browsers supporting the proprietary <embed> tag. The
    tag itself is not always a bad idea, though. Using it to include sound
    on a web page is bad, in HTML authoring for the WWW at least (which we
    are discussing here). Any decent book or tutorial on WWW authoring will
    tell you that.

    If you have some interesting music, and if you _know_ that you have all
    the rights (obtained from the authors and artists etc.) to use it on the
    WWW, you may upload it and include a _link_ to it on your page. Make
    sure the link text and context make it clear that you are linking to
    some music, and which music it is.

    Comment

    • Andy Dingley

      #3
      Re: &lt;embed&gt ; tag not working properly on linux

      On 10 Jan 2006 00:48:30 -0800, "Annu" <anurodhsrivast ava@gmail.com>
      wrote:
      [color=blue]
      ><EMBED type='applicati on/x-mplayer2'[/color]

      As a general principle, would it always be a bad idea to include a type
      attribute on <embed> that has any value of "x-*" ?

      <embed> has its uses. It is a data-oriented way to link content to the
      user's desktop environment, allowing that desktop to try and find a
      best-match for rendering that content (in this case their favoured MP3
      player). <embed> can do this in a way for which <object> has no direct
      equivalent (posts passim re. .mov files).

      This can be done through either the src URL and its "file extension" or
      through a type attribute. But if type is used, surely an "obscure" type
      (and x-* should always be obscure) is contrary to the notion of
      "distributi ng widely-known media in th eknowledge that most desktops
      will recognise them and have their own choices for dealing with them".

      If you really _have_ to use application/x-foobar, then isn't <object> a
      better idea? (and accepting that you've limited the audience to foobar
      users).

      Comment

      Working...