Commit 617f8dda36c038ead4eddda4ddc51fecf0cdf2cd

Authored by Fernando Brito
1 parent fe36f0db
Exists in master and in 2 other branches v2, wikilibras

Webm videos on wizard

app/helpers/application_helper.rb
@@ -51,13 +51,14 @@ module ApplicationHelper @@ -51,13 +51,14 @@ module ApplicationHelper
51 51
52 options[:id] = id 52 options[:id] = id
53 options[:class] = "video-js vjs-default skin #{classes}" 53 options[:class] = "video-js vjs-default skin #{classes}"
  54 + options[:preload] = 'preload'
54 55
55 content_tag(:video, options) do 56 content_tag(:video, options) do
56 if url.class == String 57 if url.class == String
57 - content_tag(:source, '', :src => url, :type => 'video/mp4') 58 + content_tag(:source, '', :src => (url + "?t=" + Time.now.getutc.to_i.to_s))
58 else 59 else
59 url.each do |v| 60 url.each do |v|
60 - concat content_tag(:source, '', :src => v) 61 + concat content_tag(:source, '', :src => (v + "?t=" + Time.now.getutc.to_i.to_s))
61 end 62 end
62 end 63 end
63 end 64 end
app/views/v_libras/requests/_position_step.haml
1 #position-step.wrapper 1 #position-step.wrapper
2 .video_wrapper 2 .video_wrapper
3 3
4 - = html5_video_tag("/system/videos/workflow/localizacao.mp4", 'id-4', 'video-wizard', :preload => 'none') 4 + = html5_video_tag("/system/videos/workflow/localizacao.webm", 'id-4', 'video-wizard')
5 5
6 :javascript 6 :javascript
7 var optionsPosition = { 7 var optionsPosition = {
app/views/v_libras/requests/_service_step.haml
1 #service-step.wrapper 1 #service-step.wrapper
2 .video_wrapper 2 .video_wrapper
3 3
4 - = html5_video_tag("/system/videos/workflow/sub_audio.mp4", 'id-2', 'video-wizard', :preload => 'none') 4 + = html5_video_tag("/system/videos/workflow/sub_audio.webm", 'id-2', 'video-wizard')
5 5
6 .row-fluid.hide 6 .row-fluid.hide
7 .span1.offset3 7 .span1.offset3
app/views/v_libras/requests/_size_step.haml
1 #size-step.wrapper 1 #size-step.wrapper
2 .video_wrapper 2 .video_wrapper
3 3
4 - = html5_video_tag("/system/videos/workflow/tamanho.mp4", 'id-3', 'video-wizard', :preload => 'none') 4 + = html5_video_tag("/system/videos/workflow/tamanho.webm", 'id-3', 'video-wizard')
5 5
6 :javascript 6 :javascript
7 var optionsSize = { 7 var optionsSize = {
app/views/v_libras/requests/_video_step.haml
1 #video-step.wrapper 1 #video-step.wrapper
2 .video_wrapper 2 .video_wrapper
3 3
4 - = html5_video_tag("/system/videos/workflow/sub_audio.mp4", 'id-1', 'video-wizard', :preload => 'auto') 4 + = html5_video_tag(['/system/videos/workflow/sub_audio.webm'], 'id-1', 'video-wizard')
5 5
6 .row-fluid 6 .row-fluid
7 .span1.offset3 7 .span1.offset3