Melodeon.net Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the new melodeon.net forum

Pages: [1]   Go Down

Author Topic: Techical question about embedded MP3 players  (Read 3317 times)

0 Members and 1 Guest are viewing this topic.

Andy in Vermont

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 948
  • Mélodie
    • Melodeon Minutes (blog)
Techical question about embedded MP3 players
« on: March 01, 2012, 06:03:06 PM »

I have noticed that the MP3 player that I use in my blog is not compatible when my blog is viewed on an iPad.  Does anyone have any recommendations for an audio player that I could use so that iPad users can listen to my audio clips?
I am really unknowledgeable about these things, so what I really need is html code that I can simply paste into the blog with the URL of my audio files.  I can convert audio to a number of different formats, so it does not have to be mp3.
Thanks in advance.
-Andy

Lester

  • MADman
  • Mods and volunteers
  • Hero Member
  • ***
  • Offline Offline
  • Posts: 9327
  • Hohners'R'me
    • Lester's Melodeon Emporium and Tune-a-Rama

Theo

  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 14475
  • Hohner Club Too
    • The Box Place
Re: Techical question about embedded MP3 players
« Reply #2 on: March 01, 2012, 06:58:12 PM »

I think the limitation with the iPad is that it's pseudo browser does to run Flash.
Logged
Theo Gibb - Gateshead UK

Proprietor of The Box Place for melodeon and concertina sales and service.
See my YouTube channel  for videos on repair and tuning

Quebecois

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1206
  • Accordez-vous donc, c'est si beau, l'accordéon!
Re: Techical question about embedded MP3 players
« Reply #3 on: March 01, 2012, 08:51:34 PM »

I think the limitation with the iPad is that it's pseudo browser does to run Flash.
Ohhhh... the Apple no-Flash v. Android Flash issue again...
Logged
Hohner Morgane D/G, pre-Erica Hohner in C/F and G/C,
Hohner Erica A/D, Roland FR-18

Andy in Vermont

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 948
  • Mélodie
    • Melodeon Minutes (blog)
Re: Techical question about embedded MP3 players
« Reply #4 on: March 01, 2012, 08:52:40 PM »

This looks promising

http://dee3-blog.blogspot.com/2010/12/googles-mp3-player-with-html5-fallback.html

Great find, Lester -- I just posted a tune using this player, and it does seem to work on the iPad!

Andrew Wigglesworth

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1101
  • 07
    • My website
Re: Techical question about embedded MP3 players
« Reply #5 on: March 01, 2012, 09:54:14 PM »

Code: [Select]
<a href="audio_file.ogg">Name of tune</a>
Sorry I couldn't bring myself to put an mp3 file in the example  :P

No, I'm not being trite. The point is, if you insist on trying to use a "snazzy embedded player" on your website then please also put in a direct link to the file as well. It's dead easy, does no harm and will help a lot of people.

Mike Hirst

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1433
  • Black Dot B/C, Bastardo C#/D, Corona II GCF
Re: Techical question about embedded MP3 players
« Reply #6 on: March 01, 2012, 11:48:58 PM »

My suggestion would be to use a jQuery plugin, for example jPlayer. There's a demo on the website, so you could test it using the iPad.

http://www.jplayer.org/latest/demos/

Shadowbox also works with audio.

http://shadowbox-js.com/
Logged
Semper idem, sed non eodem modo

Andrew Wigglesworth

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1101
  • 07
    • My website
Re: Techical question about embedded MP3 players
« Reply #7 on: March 02, 2012, 12:31:26 PM »

I use the following markup and it seems to run on all PC's I've managed to test. But not on my Android.

Code: [Select]
<div>
    <object width="300" height="24">
       <param name="src" value="http://URL.mp3">
       <param name="autoplay" value="false">
       <param name="controller" value="true">
       <param name="bgcolor" value="#FFFFFF">

       <embed src="http://URL.mp3"
           autostart="false" loop="false" width="300" height="24"
           controller="true" bgcolor="#F0E68C">
        </embed>
    </object> - <i>"Family Song"</i> &copy Dolly May &amp; Fred Ryall
 
   <p>If you don't have Quicktime (or use Windows 7) - you can
     <a href="http://URL.mp3"  title="download track">simply download the MP3 here</a>
   </p>
</div>


Filthy, isn't it?  Basically browsers aren't set up for music - we await HTML 5.

Everybody repeat, it's just a MIME type (sorry ... "Internet media type" these days). Properly set up web servers know what to do and so do browsers.

Mike Hirst

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1433
  • Black Dot B/C, Bastardo C#/D, Corona II GCF
Re: Techical question about embedded MP3 players
« Reply #8 on: March 02, 2012, 12:49:53 PM »

Is this a question of MIME over matter? (Beware of geeks bearing gifs)  :D
Logged
Semper idem, sed non eodem modo

Andy in Vermont

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 948
  • Mélodie
    • Melodeon Minutes (blog)
Re: Techical question about embedded MP3 players
« Reply #9 on: March 02, 2012, 01:56:57 PM »

Everybody repeat, it's just a MIME type (sorry ... "Internet media type" these days). Properly set up web servers know what to do and so do browsers.

Andrew,
I have to admit, I don't understand either of your posts on this thread.  Can you explain? (I'm serious.)  As to your first post, I don't understand -- it seems to me that embedded players are the best way for someone to simply hear the tune that is being posted.  When I follow up on someone else's tune or theme of the month post, I don't want to download a file -- I just want to listen to it via my browser.  I guess someone could always view the html of my blog post and find the URL of the file.
 
As to your second post, I seriously have no clue what you are talking about.

Chris, if you follow Lester's link, it gives the code for a simple player, and if someone views the page via iPad it (apparently) switches to html 5?  I don't understand how it works but in my test post, I could listen to the tune via Firefox on my PC and via Safari on my iPad, so it perfectly fits my request in the original post.
-Andy

Andrew Wigglesworth

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1101
  • 07
    • My website
Re: Techical question about embedded MP3 players
« Reply #10 on: March 02, 2012, 10:21:19 PM »

Everybody repeat, it's just a MIME type (sorry ... "Internet media type" these days). Properly set up web servers know what to do and so do browsers.

Andrew,
I have to admit, I don't understand either of your posts on this thread.  Can you explain? (I'm serious.)  As to your first post, I don't understand -- it seems to me that embedded players are the best way for someone to simply hear the tune that is being posted.  When I follow up on someone else's tune or theme of the month post, I don't want to download a file -- I just want to listen to it via my browser.  I guess someone could always view the html of my blog post and find the URL of the file.
 
As to your second post, I seriously have no clue what you are talking about.

Chris, if you follow Lester's link, it gives the code for a simple player, and if someone views the page via iPad it (apparently) switches to html 5?  I don't understand how it works but in my test post, I could listen to the tune via Firefox on my PC and via Safari on my iPad, so it perfectly fits my request in the original post.
-Andy

That's OK   ;)

I thought that the first post was straightforward (what do I know, eh?), the second was more of a side-comment aimed at Chis I suppose.

Sooooo, taking a few steps back you may see where I'm coming from.

As I think you already know, HTML is a markup language for structuring web pages. It is meant to be device and software agnostic. ie. it does not dictate what specific software or device a viewer must use.

You can use CSS (Cascading Style Sheets) to style a web page with different fonts, colours etc. but the web page still works and is (should be!) readable just using the HTML alone. The baseline for accessibility is the HTML standard maintained by the World Wide Web Consortium (W3C).

What does this mean? It means universal standards and universal access. It means people using unusual (but compliant) browsers, blind people, users of text browsers, unknown devices, people in the future or whatever will be able to use the HTML markup to display a web page in whatever way they need.

Placing complicated embedded media players using proprietary software into web pages breaks this universal accessibility. You are are doing such things as dictating the specific software that people must use, mandating particular graphical web browsers or using complicated scripting that fails on many web browsers and devices.

On top of all that, you are also laying yourself open to all sorts of other problems. Proprietary software stops being supported (eg. Flash on mobile devices), goes out of fashion or reveals serious security breaches for some users. Many users will simply refuse to use it at all.  All these things that are much, much less likely (in fact pretty unlikely) with straightforward HTML.

When complicated scripted "solutions" are placed on web pages it is good practice for them to gracefully degrade. What this means in this case is that if you want to place an embedded player on your web page, then you should place a simple HTML link to the same media content on the page.

This means that everyone has access.


PS. Yes, accessibility is not universally adhered to. Many, many websites do not bother or are short-sited in many ways. However, universal accessibility is a thing that is worth fighting to retain . It's not an ideal imposed as an afterthought on the World Wide Web, it was designed at it's very heart from the beginning. We've been gaining ground again over recent years, lets keep it up   8)
« Last Edit: March 02, 2012, 10:24:25 PM by Andrew Wigglesworth »
Logged

Andrew Wigglesworth

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1101
  • 07
    • My website
Re: Techical question about embedded MP3 players
« Reply #11 on: March 02, 2012, 10:35:25 PM »

and adding a bit ...

Playing a media file is a function of the software and operating system that you use. I can play a simply linked media file very, very easily. No need to download it all first or anything like that, I can follow the link and choose to play it (or download it to my home partition if I like).

I'm not being dogmatic here, of course people will try things out, but a lot of time (and grief) seems to be spent inventing complicated and flaky solutions for what are very simple problems.

Andy in Vermont

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 948
  • Mélodie
    • Melodeon Minutes (blog)
Re: Techical question about embedded MP3 players
« Reply #12 on: March 03, 2012, 02:49:16 AM »

Andrew,
Thank you for the explanations, very helpful.  I didn't actually realize what I was doing when I used an audio player that was apparently proprietary -- now the picture is clearer (to some extent).
-Andy

Lester

  • MADman
  • Mods and volunteers
  • Hero Member
  • ***
  • Offline Offline
  • Posts: 9327
  • Hohners'R'me
    • Lester's Melodeon Emporium and Tune-a-Rama
Re: Techical question about embedded MP3 players
« Reply #13 on: March 03, 2012, 04:50:38 AM »

When complicated scripted "solutions" are placed on web pages it is good practice for them to gracefully degrade. What this means in this case is that if you want to place an embedded player on your web page, then you should place a simple HTML link to the same media content on the page.

This means that everyone has access.

Just visited http://www.andrew-wigglesworth.co.uk/music/music-recordings.html and it has links that play tunes on an embedded player but no "simple HTML link to the same media content on the page".    :o

Andy in Vermont

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 948
  • Mélodie
    • Melodeon Minutes (blog)
Re: Techical question about embedded MP3 players
« Reply #14 on: March 03, 2012, 05:00:28 AM »

Just visited http://www.andrew-wigglesworth.co.uk/music/music-recordings.html and it has links that play tunes on an embedded player but no "simple HTML link to the same media content on the page".    :o

I tried to listen to the tunes but they won't play on my iPad.

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11154
  • Wirral UK
    • Chris Ryall
Re: Techical question about embedded MP3 players
« Reply #15 on: March 03, 2012, 07:47:12 AM »

I thought that the first post was straightforward (what do I know, eh?), the second was more of a side-comment aimed at Chis I suppose.

Ouch, but then I do set myself up sometimes  (:)  I'm presently trying to make a universal chord/scale finding website, but the utter lack of standardisation for sound, and absence of methods to scripting means that will have to stay graphical.

HTML5's <audio> tag is long overdue and I hope I'll be able to get it to play "Ab,4" in midi mode from a script - quite independently of platform. i think Apple have a lot of responsibility for driving a coach and horses through the standards W3C have worked to introduce, though Microsoft were pretty cavalier in their day.
Logged
  _       _    _      _ 

Andrew Wigglesworth

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1101
  • 07
    • My website
Re: Techical question about embedded MP3 players
« Reply #16 on: March 03, 2012, 09:24:01 AM »

When complicated scripted "solutions" are placed on web pages it is good practice for them to gracefully degrade. What this means in this case is that if you want to place an embedded player on your web page, then you should place a simple HTML link to the same media content on the page.

This means that everyone has access.

Just visited http://www.andrew-wigglesworth.co.uk/music/music-recordings.html and it has links that play tunes on an embedded player but no "simple HTML link to the same media content on the page".    :o

Erm, there is no embedded player, those are just links to Ogg-Vorbis audio files. I suspect that you're using Firefox which is simply playing them for you   ;)

Andrew Wigglesworth

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1101
  • 07
    • My website
Re: Techical question about embedded MP3 players
« Reply #17 on: March 03, 2012, 09:31:44 AM »

I thought that the first post was straightforward (what do I know, eh?), the second was more of a side-comment aimed at Chis I suppose.

Ouch, but then I do set myself up sometimes  (:)  I'm presently trying to make a universal chord/scale finding website, but the utter lack of standardisation for sound, and absence of methods to scripting means that will have to stay graphical.

HTML5's <audio> tag is long overdue and I hope I'll be able to get it to play "Ab,4" in midi mode from a script - quite independently of platform. i think Apple have a lot of responsibility for driving a coach and horses through the standards W3C have worked to introduce, though Microsoft were pretty cavalier in their day.

Oh heck, it wasn't meant to be aimed in a painful way  :-\

Yes, the audio tag is one of the many wonders that HTML5 will bring in and another yes to the fact that Apple and Microsoft have both tried to scupper the media formats. At least we've had Mozilla and Google fighting on the other side.

I feel your frustration, things may be simple but they're nowhere near ideal.

tedrick

  • Guest
Re: Techical question about embedded MP3 players
« Reply #18 on: March 03, 2012, 04:57:33 PM »

I have found soundcloud files embed nicely and playback nicely on most platforms - ie:

http://thewholenote.net/songs/3romantic.html

Reed
Logged

Chris Ryall

  • "doc 3-row"
  • French Interpreter
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 11154
  • Wirral UK
    • Chris Ryall
Re: Techical question about embedded MP3 players
« Reply #19 on: March 04, 2012, 07:52:31 AM »

So can we embed one here?  ???
Logged
  _       _    _      _ 
Pages: [1]   Go Up
 


Melodeon.net - (c) Theo Gibb; Clive Williams 2010. The access and use of this website and forum featuring these terms and conditions constitutes your acceptance of these terms and conditions.
SimplePortal 2.3.5 © 2008-2012, SimplePortal