HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


HTML - Embedding Music

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#35912 (In Topic #8079)
Joe
Avatar

Honoured member

Help! IE incompatibility issues

I'm trying to embed music on a page, and I managed to discover the valid way of doing this, however, IE doesn't display the player - it just displays something that looks like a textarea. :/ Any ideas?

Here's the HTML code I'm using to embed the music:

Code

<object data="myfile.mp3" type="audio/wav" width="280" height="45" standby="Loading..." title="Testing">
                                 <param name="AutoStart" value="false" />
                                 <param name="AnimationAtStart" value="true" />
                                 <param name="EnableContextMenu" value="true" />
                                 <param name="FileName" value="myfile.mp3" />
                                 <param name="ShowAudioControls" value="true" />
                                 <param name="ShowPositionControls" value="true" />
                                 <param name="ShowStatusBar" value="true" />
                              
                                 <param name="ShowControls" value="true" />
                                 <param name="xVolume" value="50" />
                                    <object width="300" height="100" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading..." type="application/x-oleobject" title="Testing">
                                       <param name="AnimationAtStart" value="true" />
                                       <param name="AutoStart" value="false" />
                                       <param name="EnableContextMenu" value="true" />
                                       <param name="FileName" value="myfile.mp3" />
                                       <param name="ShowAudioControls" value="true" />

                                       <param name="ShowPositionControls" value="true" />
                                       <param name="ShowStatusBar" value="true" />
                                       <param name="ShowControls" value="true" />
                                       <param name="xVolume" value="50" />
                                          <strong>Your media player and/or the music file failed to load properly or to render the music file accordingly.</strong>
                                    </object>
                              </object>

It's standards-compliant, and it works beautifully in Firefox, but IE doesn't like it. :P

Firefox:


IE:


From now on, we're going to refer to "IE" or "Internet Explorer" as Internet Exploder - its new name. :)

Back to the top
 
Posted
Rating:
#35913
Avatar

Well-settled

There is a topic about a external music player, maby thats what you search for.
Its working with Explorer - Opera and firefox.
Its called : Anarchy_Media_js  
Back to the top
 
Posted
Rating:
#35919
Avatar

Looking at our ATTACHMENT_MEDIA template might help.

Plugins are an immense pain, and it's not quite fair to blame IE for once (but they do deserve a little bit of blame ;)). The problem is, web browsers have to choose what plugin to play an embedded file, but the mechanism and precedence to do that (classid, mime-type, file extension), and the plugins available, various enormously. It also depends on plugin versions, and what codecs are installed for the app behind the plugin.
It's something that really needs cleaning up, but for the last few years people have just been opting for flash because:
  • nothing conflicts with it (it 'owns' the swf file type, mime type, and flash player classid)
  • it's available in virtually any browser on any OS (although that's a little tricky on Linux - often requires manual installation)
  • it has good media support itself (inbuilt video capabilities)
That's not ideal though. I know I'd much rather play standard MPEG-4 and mp3 (or Ogg) than have to rely on a single vendor (Adobe). Unfortunately even if the plugin system was more standardised, the standards (like MPEG) are far from standard across different media players!


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: