Commit 367854abb732d90ecee9bb01092599fc03628afb

Authored by libras
1 parent ec0966c8
Exists in master and in 1 other branch devel

Atualiza chamada do core

app/controllers/api/videos_controller.rb
... ... @@ -6,9 +6,9 @@ class Api::VideosController < Api::BaseController
6 6 create! {
7 7  
8 8 if @video.closed_caption == 1 || @video.closed_caption == 3
9   - cmd = "../vlibras-core/./gtaaas #{@video.closed_caption} public#{@video.url} 1 #{@video.subtitle.window_position} #{@video.window_size} #{@video.transparency} #{@video.id} &"
  9 + cmd = "../vlibras-core/./vlibras #{@video.closed_caption} public#{@video.url} 1 #{@video.subtitle.window_position} #{@video.window_size} #{@video.transparency} #{@video.id} &"
10 10 else
11   - cmd = "../vlibras-core/./gtaaas 2 public#{@video.url} public#{@video.legend} 1 #{@video.window_position} #{@video.window_size} #{@video.transparency} #{@video.id} &"
  11 + cmd = "../vlibras-core/./vlibras 2 public#{@video.url} public#{@video.legend} 1 #{@video.window_position} #{@video.window_size} #{@video.transparency} #{@video.id} &"
12 12 end
13 13 system(cmd)
14 14 }
... ...
app/controllers/static_controller.rb
... ... @@ -31,9 +31,9 @@ class StaticController < ApplicationController
31 31 end
32 32  
33 33 if @presenter.subtitle.closed_caption == 1 || @presenter.subtitle.closed_caption == 3
34   - cmd = "../vlibras-core/./gtaaas #{@presenter.subtitle.closed_caption} public#{@presenter.subtitle.url} 1 #{@presenter.subtitle.window_position} #{@presenter.subtitle.window_size} #{@presenter.subtitle.transparency} #{@presenter.subtitle.id} &"
  34 + cmd = "../vlibras-core/./vlibras #{@presenter.subtitle.closed_caption} public#{@presenter.subtitle.url} 1 #{@presenter.subtitle.window_position} #{@presenter.subtitle.window_size} #{@presenter.subtitle.transparency} #{@presenter.subtitle.id} &"
35 35 else
36   - cmd = "../vlibras-core/./gtaaas 2 public#{@presenter.subtitle.url} public#{@presenter.subtitle.legend} 1 #{@presenter.subtitle.window_position} #{@presenter.subtitle.window_size} #{@presenter.subtitle.transparency} #{@presenter.subtitle.id} &"
  36 + cmd = "../vlibras-core/./vlibras 2 public#{@presenter.subtitle.url} public#{@presenter.subtitle.legend} 1 #{@presenter.subtitle.window_position} #{@presenter.subtitle.window_size} #{@presenter.subtitle.transparency} #{@presenter.subtitle.id} &"
37 37 end
38 38 #raise cmd.inspect
39 39 system(cmd)
... ...