Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Embeding mp3 doesn't work ... help

Reply
Thread Tools

Embeding mp3 doesn't work ... help

 
 
Spartanicus
Guest
Posts: n/a
 
      08-01-2005
"" <> wrote:

>> It may work on *your* system, but it won't work on *my* system. Had
>> you done the sensible thing it would have worked on my and similarly
>> configured systems, and that's *your* loss.
>>

>
>ok
>I installed Firefox to test my site ...


You still don't get it, it's not about what browser a client is using,
it needs to work for all users using all sorts of browsers.

>... it didn't work (WAV or MP3) as I didn't have
>the quicktime plugin (which is 21mb btw) ...


It also isn't about what, if any, plugins the user has, or if they are
enabled or not.

>So I guess users need to have 4 choices :
>embeded WAV
>popup WAV
>embeded MP3
>popup MP3


Again: a single link enables your content to work for all people using
all browsers, plugins or no plugins. Don't like the way clicking a link
to an audio resource works on your system?: Change your system's
settings!

>Damn, let's go to work now


Until you change your approach all you'll be doing is making a bad
situation worse.

--
Spartanicus
 
Reply With Quote
 
 
 
 
SpaceGirl
Guest
Posts: n/a
 
      08-01-2005
wrote:
> Spartanicus <> wrote in
> news: anicus.utvinternet.ie:
>
>
>>Apart from the flawed method of using the embed element, any form of
>>embedding (and that includes bgsound) is flawed. Embedded audio is in
>>the top ten of things people hate about web sites.
>>

>
>
> What I showed you in that test is only the tip of the iceberg. User will
> have a choice of lets say 20 sounds to play on the page (i.e. 20 "play"
> buttons).
>
> When they click on the button, a new page will open with the sound
> embeded (if they chose WAV) or in background mode (if they chose MP3).
>
>
>
>>You've been shown how to do this in a way that enables it to work for
>>*all* clients (at so that the audio only plays at the user's request
>>only). It's pointless if it "works" on your computer, if you are
>>creating a web site then it needs to work for *others*.
>>

>
>
> No I have not. What you showed me say :
> "Linking to the redirector file will cause the associated player
> software to start on the client computer"
>
> I wanted something embeded (like for the wav example) but unfortunately
> it doesn't seem achivable with MP3.
>


You're MUCH better off doing all of this in Flash you know. You have
complete control over the audio, playback and how it all works together
inside of Flash. You can embed and link to most media formats that way.
Almost everyone has Flash, and it's far easy to code for and support
because Flash works the same on all browsers. All you have to have on
your site is one (or more) Flash container movies and something there to
tell people how to get the Flash player if they haven't. Like I said,
most people do.

--


x theSpaceGirl (miranda)

# lead designer @ http://www.dhnewmedia.com #
# remove NO SPAM to email, or use form on website #
# this post (c) Miranda Thomas 2005
# explicitly no permission given to Forum4Designers
# to duplicate this post.
 
Reply With Quote
 
 
 
 
dorayme
Guest
Posts: n/a
 
      08-01-2005
> From: Spartanicus <>
>
> Apart from the flawed method of using the embed element, any form of
> embedding (and that includes bgsound) is flawed. Embedded audio is in
> the top ten of things people hate about web sites.
>


It would not rate badly for people who specifically use a site that teaches
the sounds of vowels and stuff... Don't fall for unexamined nostrums drawn
from opinion polls...

>>
>> It is the best I can think of as objetct/param tags didn't work properly.

>
> You've been shown how to do this in a way that enables it to work for
> *all* clients (at so that the audio only plays at the user's request
> only).


The OP says it did not work. So I hope he comes back and gives more details.

dorayme

 
Reply With Quote
 
dorayme
Guest
Posts: n/a
 
      08-02-2005
> From: "" <>
>
> Hi again,
>
> The problem with my code was on the following line :
> <PARAM NAME="fileName"
> VALUE="http://www.perignon.co.uk/fr/lessonbeg/sound/o.mp3">
>
> When replaced with :
> <PARAM NAME="fileName" VALUE="./fr/lessonbeg/sound/o.mp3">
>
>
> The sound plays !!!! (I am using IE6)
>
> And the <OBJECT><PARAM> tags are not proprietary (unlike bgsound) so it
> should work in most of the browsers ....
>
> Can you guys try
> http://www.perignon.co.uk/testmp3.html
> and tell me if it works for you please ?
>


Does not work in any of my browsers, it may not be your fault? You
specify Windows Media Player and there are issues here. I was able to
get the sound by going to the source at
http://70.84.175.210/~perigno/fr/lessonbeg/sound/o.mp3 and it then
played in my browser window in Quicktime. With a movie bar and sound
controls and all that palava to hear the nice short vowel. Perhaps
Spartanicus should conduct a survey of how this would go down generally
with folks... I'd say, 98.2 percent would be ****ed off... (relax
Spartinacus, just pulling your chain.... .

There may be some moral in this. This construction of yours is demanding
a particular player on the original page and I for one have some issues
re this. The beauty of the embed is that it just bloody well played!

I use Mozilla WamCom1.3, IE 5.1.6, iCab 3 which may be enough reason to
ignore me. There may be other reasons too!

Your code is not kosher (I am not talking about the particular sound bit
here). No doc title, no Doctype, not to say about the deprecated
tags...) Just thought you might want to fix this up. You really don't
need so much stuff, tables and divs and deprecated things like font
tags.

dorayme

 
Reply With Quote
 
Toby Inkster
Guest
Posts: n/a
 
      08-02-2005
wrote:

> And the <OBJECT><PARAM> tags are not proprietary (unlike bgsound) so it
> should work in most of the browsers ....


They're not, but you're using them in an entirely
Internet-Explorer-specific way:

<OBJECT ID="mediaPlayer"
CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
STANDBY="Loading Microsoft Windows Media Player components..."
TYPE="application/x-oleobject">
<PARAM NAME="fileName" VALUE="./fr/lessonbeg/sound/o.mp3">
<PARAM NAME="autoStart" VALUE="true">
<PARAM NAME="showControls" VALUE="false">
</OBJECT>

Didn't warning bells flash when you saw that the word "Microsoft" appeared
in that code twice?

The correct way of using the <OBJECT> element is like this:

<OBJECT ID="mediaPlayer" TYPE="audio/x-wav"
data="./fr/lessonbeg/sound/o.mp3" height="0" width="0">
<PARAM NAME="autoStart" VALUE="true">
<PARAM NAME="showControls" VALUE="false">
</OBJECT>

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
3GP to MP3 Convert 3GP to MP3 using 3GP MP3 Converter music-fan DVD Video 0 12-24-2009 04:58 AM
HTML Help - Embeding WMP Dennis Computer Support 9 02-04-2009 05:17 PM
Embeding Directx in aspx page? =?Utf-8?B?UGlja3dpY2tCb2Iz?= ASP .Net 1 12-01-2005 09:37 AM
embeding wmp w/instant play?l ASP .Net 3 06-10-2005 03:56 PM
Re: Font Embeding Adrienne HTML 3 07-22-2003 06:04 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57