Google Answers Logo
View Question
Q: Streaming an mp3 securely ( Answered,   4 Comments )
Subject: Streaming an mp3 securely
Category: Computers > Programming
Asked by: iqram-ga
List Price: $25.00
Posted: 09 Sep 2006 11:31 PDT
Expires: 09 Oct 2006 11:31 PDT
Question ID: 763692
I would like to know a secure way to stream mp3 files using flash. 
This means that a user can go to my website and stream a whole song
but the user will have no way of downloading that song. It should work
just like or
Subject: Re: Streaming an mp3 securely
Answered By: sublime1-ga on 09 Sep 2006 17:52 PDT

The following simple application from the MyGen website works
great for me! I've placed it on two of my website's pages, and
it's completely secure. The actual music files can even be put
on a different server, at a different URL:

The code is pretty straightforward, and all you have to do is
upload a couple of files to the page where the player is to be
located, and then adjust the code to point to those locations,
but if you need help with that, let me know (though our discussion
will then be public record, so that may not be the best idea).

Another free solution is the demo player from Hoover Web Design:

This one plays multiple tracks, exhibiting them one at a time,
and doesn't allow the user to select a different track as the
first one does. However they offer a player with more options
for $50, here:

Other players are shown on this page:

Here's another option that costs $39.99, but it doesn't seem
to have the support of a dedicated website - WebAudioChamp 1.0:

FLAMplayer is another option that requires (or accommodates)
websites using PHP and MySQL, and is free:

They offer FLAMexpress as a free service for musicians that
don't have a PHP and MySQL website, but the service is still
in development.

Coffee Cup offers a Web Juke Box program for $34 that provides
a graphic interface that allows you to skin and configure the
player on your PC, then provides an FTP program to upload the
files to your site. They offer a 30-day free trial, but they
don't talk about security, and it seems the songs will be 
uploaded to your site, though they would be hard to find if
they are named differently than the titles that are displayed:

They have some excellent Flash tutorials to show you how the
program works:

That should give you enough options to satisfy your needs.
If you have any questions, let me know...


Additional information may be found from an exploration of
the links resulting from the Google searches outlined below.

Searches done, via Google:

mygen player.swf

mp3 music macromedia movie player

Clarification of Answer by sublime1-ga on 11 Sep 2006 12:09 PDT
Here's another one I just happened to run across, called the XSPF
Web Music Player. It's quite similar to the first one I showed you,
but allows you to display an album cover, and uses a scroll bar
instead of mouse auto-scrolling:

Request for Answer Clarification by iqram-ga on 11 Sep 2006 19:56 PDT
This does not clear my question of how to stream an mp3 file securley
- without allowing another user the ability to download my file.

Clarification of Answer by sublime1-ga on 11 Sep 2006 21:52 PDT
I don't understand. All of these players allow streaming, and none
of them allow downloads. Were you able to download any of the songs
from the sites that exhibited working demos of the players? Please
clarify the problem you have with any or all of these players.


Clarification of Answer by sublime1-ga on 11 Sep 2006 22:33 PDT
Here's another classy player for only $10 - the TSPlayer:

This one has no indication, in the source code for the demo
page, of utilizing playlist files, if that was your concern.


Clarification of Answer by sublime1-ga on 11 Sep 2006 22:54 PDT
Here's another one, simply called the Website Music Player, that
also contains no playlist files in the source code on the demo
page, and even allows people to click and buy any or all of the
songs on the list via PayPal:

It requires a website with PHP, MySQL, and a Linux host, which 
may account for the better security, and costs $67.

Using PHP and MySQL with the free FLAMplayer, cited earlier
should also provide more than enough security.

Clarification of Answer by sublime1-ga on 14 Sep 2006 11:33 PDT
In regards to the comments by ark11-ga, I believe I addressed
that concern in my two preceeding clarifications, starting with
the one on 11 Sep 2006 22:33 PDT.
Subject: Re: Streaming an mp3 securely
From: ark11-ga on 14 Sep 2006 08:35 PDT
These players do allow you to download the tracks:  the location of
each mp3 file is publicly viewable in the source code.  Take look at
your first suggestion, for example, and you'll find this:

So these don't meet iqram's criterion that the player be secure and
not allow downloading of the mp3.
Subject: Re: Streaming an mp3 securely
From: ark11-ga on 14 Sep 2006 08:44 PDT
re sublime's sept 11 suggestions:

not secure.
Subject: Re: Streaming an mp3 securely
From: schapht-ga on 25 Sep 2006 06:41 PDT
Well played, ark11.  I had the thought that you could implement a kind
of CHAP to do this using a "secret" key in both the swf and the
website that provides the file.  Plus some hashing.  But that's only
obscurity, really.

The only way I can see to buy some solid security would be to make
that "secret" key unique to every instance of the flash player and
expire the keys every hour or so.  The host would have to imbed the
key into the swf at the time of the request.  I don't know much about
flash, but my understanding is that this would require flash bytecode
modifications.  Which could be quite involved.  Sadly, I have yet to
see a free player that does this.

I'm starting to wonder if even myspace's player just uses URLs.
Subject: Re: Streaming an mp3 securely
From: schapht-ga on 25 Sep 2006 06:53 PDT
(follow up) At least according to Charles (,
myspace doesn't reference any URLs for the mp3's unless the mp3 is
also downloadable in the player.  So there's gotta be some way to do

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  

Google Home - Answers FAQ - Terms of Service - Privacy Policy