Displaying 1 result from an estimated 1 matches for "streamert".
Did you mean:
streamer
2007 Mar 12
17
need help writing a plugin
...etup to monitor a directory /movies.
Whenever a .flv file is requested within that directory, some stuff
should happen, if not, the request should be processed as usual. I don''t
know how to do the latter..
require ''mongrel''
require ''gem_plugin''
class Streamert < GemPlugin::Plugin "/handlers"
include Mongrel::HttpHandlerPlugin
def initialize(options = {})
@docroot = options[:cwd] + "/" + options[:docroot]
end
def process(request, response)
# only stream flv files
unless File.extname(request.params[''...