1
crushdepth
Re: Maintaining a streaming connection
  • 2011/2/17 13:17

  • crushdepth

  • Just popping in

  • Posts: 2

  • Since: 2010/7/12


This falls in the 'other ideas' category. A good way to handle streaming is to offer a playlist file (.m3u) as a link. This is just a plain text file (with .m3u extension) that contains a list of URLs of soundtracks that you want to stream.

Basically the browser will hand off the playlist to the user's media player (or other relevant application), which will understand that it should start streaming the track. If the playlist contains multiple URLs, the user can skip back and forth between them in the player.

You can also stream video in this way. It's not ajax, but it is crazy simple and flexible, and it leaves the user's browser free.

On the programming side, you can dynamically generate a playlist file by sending a header, like:

header('Content-Type: audio/x-mpegurl audio/mpeg-url application/x-winamp-playlist audio/scpls audio/x-scpls; charset=iso-8859-1');
header("Content-Disposition:inline;filename=stream_soundtrack.m3u");
echo 
$url;
exit();






2
crushdepth
Re: Legal Quotations of GPL and Rights
  • 2010/7/12 9:57

  • crushdepth

  • Just popping in

  • Posts: 2

  • Since: 2010/7/12


It's worth having a read of the GPL because it is quite clear about what you can and can't do.

Quote:
What about the idea of someone having to sign a NDA when they buy software to get the source code? Does that also violate the GPL? Since all your really agreeing to is that your not going to pass the code on to someone else?


The GPL guarantees the recipient the right to redistribute the code. It expressly forbids you to place restrictions on this right, so you can't distribute the code under an NDA.

Quote:
What about licenses which allow you to use modules on a non commercial site for free? Can you require a payment to use this same module on a commercial site?


You can charge whatever you like for *distributing* GPL modules, but you can't charge a royalty or license fee for their use.

For example, you can charge a commercial site for a copy of your GPL module but they have the right to give it (or sell it!) to other commercial sites if they want. You can't claim fees from the other sites.

Basically the GPL encourages sharing. If you're trying to find ways to prevent sharing of your work, you're barking up the wrong tree.




TopTop



Login

Who's Online

177 user(s) are online (135 user(s) are browsing Support Forums)


Members: 0


Guests: 177


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits