Stream videos and secure the files

I am currently writing an app and would like to stream videos through
a jwplayer or flowplayer. The video files are stored in a folder out
of public. So as first option I guess send_data should work, but I
don't know how to put together send_data and the player.

Or if there is any other option to deny the direct url input access to
those files via a handler and put the files on public directory.

Could someone point me in the right direction?

Any advice, or suggestions would be greatly appreciated.

Thanks in advance!

Ariel