I'd love to hear some suggestions...
1 person found this helpful
Here's what I'm doing:
Here is the code and it is really simple:
<source src="../path/filename.ogg" type="audio/ogg" />
<source src="../path/filename.mp3" type="audio/mpeg" />
Your browser does not support the audio element. <a href="../path/filename.mp3">Right-Click here</a> and choose Save file as… to download the .MP3 file</audio>
Works in all browsers. Works in all media players that support mpeg audio. But here's a word of warning:
Some browsers may not know that the ogg audio is there, so you may need to edit your .htacess file (on Apache) or your filetypes (on Microsoft IIS servers) to include it.
Here's the change to put into .htaccess. I don't use IIS:
AddType audio/ogg .oga
AddType video/ogg .ogv
AddType application/ogg .ogg
AddHandler application-ogg .ogg .ogv .oga
That will enable both ogg video and audio. Without these lines, Firefox may not play your file.
To make your audio files, please see this link.
I see lots of examples here...
With editing - can I make long playlists - 10 or 20 songs at a time with scrolling?
AND BTW: If I wanted to make my own playlist ... in php - how can I make a scrollable list in php?
I check out the code!
I would want to build a php playlist - so is there a way to list some songs and then:
have these be vars
<source src="phpVARPATH1" type="audio/ogg" />
<source src="phpVARPATH1a" type="audio/mpeg" />
then somehow trigger the player to auto stop the last song and auto start the new song when choosing a new song?
Pickle player documentation describes how you can automatically generate playlists with PHP:
Also see player options
The beauty of Pickle Player is that you only need to offer one file type (MP3) for each audio title; not 4 different file types as you do with HTML5 <audio>. This saves you both time and server space.
WOW NANCY - Boy were you right YIPPEE !!!!!
I finally got it going and it works GREAT!
BTW: I love the fact that it can play just mp3's on all platforms!
Pickle Player is the best I've tested so far.
Got a problem - pickleplayer is not updating the playlist I created. Like it gets stored in cache and gets stuck with old playlist even when I refresh browser.
Q: How can I get it to always refresh the playlist?
I liked building players with a tutorial i found on cartoonsmart.com. He has two on there. Here are the links to both of them. They look great, and the tutorial is very easy to follow and indepth which allows you to go ahead and experiment with your own designs once you have learned how to do it.
but those are flash based right?
i need to avoid anything flash because apple hates flash right?
Nancy - it seems that the browser does not update on the local mac but does work on the actual site ... is there some kind of oddity here?
Pickle works best when tested on an actual server, especially if you're using PHP to automatically generate playlists.
Hi Nancy O.,
I worked with Mike in Tech support and he came up with this cool php mod... Now it loads the playlist fresh everytime - local or remote!!!
<div data-media="mylist.xml<?php print('?'.microtime(true).'.xml') ?>"></div>