videos_controller.rb 636 Bytes
# Author - Igor Portela - igorportela.com | Copyright(c) 2013. All rights reserved.
class Api::VideosController < Api::BaseController

  def create
    
create! { 
    
    if @video.closed_caption == 1 || @video.closed_caption == 3
	  cmd = "../vlibras-core/./gtaaas #{@video.closed_caption} public#{@video.url} 1 #{@video.subtitle.window_position} #{@video.window_size} #{@video.transparency} #{@video.id} &"
    else
	  cmd = "../vlibras-core/./gtaaas 2 public#{@video.url} public#{@video.legend} 1 #{@video.window_position} #{@video.window_size} #{@video.transparency} #{@video.id} &"
    end
    system(cmd)
}
     
    
  end
end