noosfero | Html5VideoPlugin: extracts conversion jobs to script (!1308)

Rodrigo Souto gitlab at mg.gitlab.com
Mon Sep 18 17:14:04 BRT 2017


Rodrigo Souto started a new discussion on plugins/html5_video/lib/video_processor/pool_manager.rb:

> +require 'fileutils'
> +
> +# Manages a pool of videos waiting to be converted.
> +# The pool consists on a directory. Every video is a text file containing the
> +# full path of the original video file.
> +module VideoProcessor
> +  class PoolManager
> +
> +    # Inside the pool directory, the files will be organized as follows:
> +    # <pool_path>/<environment_id>/<uploaded_file_id>
> +    RAILS_ENV = ENV['RAILS_ENV'] ? ENV['RAILS_ENV'] : 'development'
> +    PATH = File.join('/tmp/noosfero/html5_video_plugin/pool/', RAILS_ENV)

You should use `RAILS_ROOT/tmp/html5_video_plugin/pool/` here.

---
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1308#note_40679477
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170918/9e3bc2ad/attachment.html>


More information about the Noosfero-dev mailing list