Hi,
I'm halfway developing a tiny plugin that allows people to scrub flash
video files. I've got my plugin setup 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['REQUEST_PATH']).downcase == '.flv'
# somehow call the original process method?
end
...
end
How would I accomplish this?
Jeroen
_______________________________________________
Mongrel-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/mongrel-users