Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Fundamentally, the difference between streaming and downloading is one of interface and client-side behavior, not transmission. In order for the user to be able to listen to a streamed file, a full copy of it (if they listen all the way through to the end) is transmitted from the server to the client. A client that is designed just to listen to streams and not download can throw away the parts that have already been heard, but you can't directly control that on the server end. All you control there is what is sent, and you've got to send everything you want the user to hear.

It sounds to me like what you're really asking for is DRM, but that is not a feature of how the files are transmitted, but rather of the format they are in. .mp3 by itself has no such protections as far as I am aware, so using just that you cannot do what you want. Wrapping .mp3 in some kind of encrypted protection format *might* do what you want; encoding them in a DRM-enabled format in the first place is *more* likely to do what you want. An unauthorized client cannot then read the file at all (to listen _or_ to download), unless the DRM scheme is broken, so then you have a measure of control over the client.

And yeah, this is definitely the wrong forum. You could implement the server side in mod_perl, or in something else, and it won't change the characteristics of the situation.


Sanity? Oh, yeah, I've got all kinds of sanity. In fact, I've developed whole new kinds of sanity. Why, I've got so much sanity it's driving me crazy.

In reply to Re: (OT) Stream MP3 but prevent user from downloading by jonadab
in thread (OT) Stream MP3 but prevent user from downloading by boboson

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (8)
As of 2024-04-25 11:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found