Contact Doug!
Learn About Doug!
View Doug Boude's online resume
updated 11/18/2009

View Doug Boude's profile on LinkedIn
Link to me!

Follow Doug Boude on Twitter
Follow me!

Be Doug's friend on Facebook
Befriend me!
(I promise not to follow you home)
OO Lexicon
Chat with Doug!
Recent Entries
You may also be interested in...
Florida web site design



Czech your Page Rank!
Check Page Rank of any web site pages instantly:
This free page rank checking tool is powered by Page Rank Checker service
Surf's Up!
Visit Egosurf.org and massage YOUR web ego!
My Score: 9,001
Doug's Books

Read (and recommend)

  • Men are from Mars, Women are from Venus
  • The Wisdom of Crowds: Why the Many Are Smarter Than the Few and How Collective Wisdom Shapes Business, Economies, Societies and Nations
  • Blink: The Power of Thinking Without Thinking
  • Head First Design Patterns
  • Transact-SQL Programming
  • What's So Amazing About Grace?
  • Just So Stories (Rudyard Kipling collection)

Reading

  • Prayer: Does it Make Any Difference?
  • Data Mining (Practical Machine Learning Tools and Techniques)
<< June, 2006 >>
SMTWTFS
123
45678910
11121314151617
18192021222324
252627282930
Search Blog

Recent Comments
Categories
Archives
Photo Albums
Funnies (5)
Family (3)
RSS

Powered by
BlogCFM v1.11

25 September 2006
Faux Audio Streaming
If you ever find yourself with the need or desire to build a streaming audio library but don't want to mess with incorporating REAL Server or some other formal product to do it, I came across a cool little workaround that I thought I'd toss out there just "FYI".

In my experiment, the test audio files are in MP3 format, but I assume that any format that can be natively played by Windows Media Player will work just as well.

The basic steps:
  • Upload MP3s to their new home;
  • Create a template containing a link to a "pointer" file;
  • Create the pointer file, which itself contains links directly to the MP3(s);

Okay, let's say I have two songs I want people to be able to play, but I don't want them to have to wait until the entire file downloads before it starts playing. I create my main template with a link to a pointer file, like so:

<a href="mytest.m3u">Click here to try out "faux audio streaming"</a>
.....

I then create the actual pointer file, which itself contains complete URLs to the audio files:

http://www.dougboude.com/documents/02 Help Is On It's Way.mp3
http://www.dougboude.com/documents/03 Love's Theme.mp3
Important: This pointer file is saved with a "M3U" extension

Now, when I click the link in the main template, I'm prompted to open Windows Media Player. When I do, the first song immediately begins to play even before it has completely downloaded. In addition, I see in my media player's playlist all of the mp3 files listed in my pointer file, and have the ability to skip around.



You can see it in action by clicking here.



Posted by dougboude at 7:27 PM | PRINT THIS POST! |Link | 1 comment
Subscription Options

You are not logged in, so your subscription status for this entry is unknown. You can login or register here.

Re: Faux Audio Streaming
When I clicked the example link, it opened iTunes but wouldn't play the mp3's at all.
I imagine that if I associated the M3U with MS Media Player it would work.
OS: Windows XP, iTunes 6.
Posted by Micah on September 25, 2006 at 8:47 PM

Name:   Required
Email:   Required your email address will not be publicly displayed.

Want to receive notifications when new comments are added? Login/Register for an account.

Time to take the Turing Test!!!

10 plus 1 equals
Type in the answer to the question you see above:

Your comment:

Sorry, no HTML allowed!