diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 7c32ed1..b2d314c 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -51,13 +51,14 @@ module ApplicationHelper options[:id] = id options[:class] = "video-js vjs-default skin #{classes}" + options[:preload] = 'preload' content_tag(:video, options) do if url.class == String - content_tag(:source, '', :src => url, :type => 'video/mp4') + content_tag(:source, '', :src => (url + "?t=" + Time.now.getutc.to_i.to_s)) else url.each do |v| - concat content_tag(:source, '', :src => v) + concat content_tag(:source, '', :src => (v + "?t=" + Time.now.getutc.to_i.to_s)) end end end diff --git a/app/views/v_libras/requests/_position_step.haml b/app/views/v_libras/requests/_position_step.haml index cc480ee..2715dce 100644 --- a/app/views/v_libras/requests/_position_step.haml +++ b/app/views/v_libras/requests/_position_step.haml @@ -1,7 +1,7 @@ #position-step.wrapper .video_wrapper - = html5_video_tag("/system/videos/workflow/localizacao.mp4", 'id-4', 'video-wizard', :preload => 'none') + = html5_video_tag("/system/videos/workflow/localizacao.webm", 'id-4', 'video-wizard') :javascript var optionsPosition = { diff --git a/app/views/v_libras/requests/_service_step.haml b/app/views/v_libras/requests/_service_step.haml index ece68f2..f31db00 100644 --- a/app/views/v_libras/requests/_service_step.haml +++ b/app/views/v_libras/requests/_service_step.haml @@ -1,7 +1,7 @@ #service-step.wrapper .video_wrapper - = html5_video_tag("/system/videos/workflow/sub_audio.mp4", 'id-2', 'video-wizard', :preload => 'none') + = html5_video_tag("/system/videos/workflow/sub_audio.webm", 'id-2', 'video-wizard') .row-fluid.hide .span1.offset3 diff --git a/app/views/v_libras/requests/_size_step.haml b/app/views/v_libras/requests/_size_step.haml index 991c408..e1e7a29 100644 --- a/app/views/v_libras/requests/_size_step.haml +++ b/app/views/v_libras/requests/_size_step.haml @@ -1,7 +1,7 @@ #size-step.wrapper .video_wrapper - = html5_video_tag("/system/videos/workflow/tamanho.mp4", 'id-3', 'video-wizard', :preload => 'none') + = html5_video_tag("/system/videos/workflow/tamanho.webm", 'id-3', 'video-wizard') :javascript var optionsSize = { diff --git a/app/views/v_libras/requests/_video_step.haml b/app/views/v_libras/requests/_video_step.haml index 74df17e..df575f2 100644 --- a/app/views/v_libras/requests/_video_step.haml +++ b/app/views/v_libras/requests/_video_step.haml @@ -1,7 +1,7 @@ #video-step.wrapper .video_wrapper - = html5_video_tag("/system/videos/workflow/sub_audio.mp4", 'id-1', 'video-wizard', :preload => 'auto') + = html5_video_tag(['/system/videos/workflow/sub_audio.webm'], 'id-1', 'video-wizard') .row-fluid .span1.offset3 -- libgit2 0.21.2