diff --git a/app/views/v_libras/requests/_position_step.haml b/app/views/v_libras/requests/_position_step.haml index 486d57d..120f53f 100644 --- a/app/views/v_libras/requests/_position_step.haml +++ b/app/views/v_libras/requests/_position_step.haml @@ -2,7 +2,7 @@ .video_wrapper = html5_video_tag(['/system/videos/workflow/localizacao.webm', '/system/videos/workflow/localizacao.mp4'], - 'id-4', 'video-wizard', '{ "preload": true, "controls": false }') + 'id-4', 'video-wizard', '{ "preload": true, "controls": false, "preload": false }') - content_for :javascript_code do :javascript diff --git a/app/views/v_libras/requests/_service_step.haml b/app/views/v_libras/requests/_service_step.haml index e607342..9447b59 100644 --- a/app/views/v_libras/requests/_service_step.haml +++ b/app/views/v_libras/requests/_service_step.haml @@ -2,7 +2,7 @@ .video_wrapper = html5_video_tag(['/system/videos/workflow/sub_audio.webm', '/system/videos/workflow/sub_audio.mp4'], - 'id-2', 'video-wizard', '{ "preload": true, "controls": false }') + 'id-2', 'video-wizard', '{ "preload": true, "controls": false, "preload": false }') .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 834b525..86a5764 100644 --- a/app/views/v_libras/requests/_size_step.haml +++ b/app/views/v_libras/requests/_size_step.haml @@ -2,7 +2,7 @@ .video_wrapper = html5_video_tag(['/system/videos/workflow/tamanho.webm', '/system/videos/workflow/tamanho.mp4'], - 'id-3', 'video-wizard', '{ "preload": true, "controls": false }') + 'id-3', 'video-wizard', '{ "preload": true, "controls": false, "preload": false }') - content_for :javascript_code do diff --git a/app/views/v_libras/requests/_video_step.haml b/app/views/v_libras/requests/_video_step.haml index d708fc1..4dc4432 100644 --- a/app/views/v_libras/requests/_video_step.haml +++ b/app/views/v_libras/requests/_video_step.haml @@ -1,6 +1,8 @@ #video-step.wrapper + .video_wrapper + = html5_video_tag(['/system/videos/workflow/video.webm', '/system/videos/workflow/video.mp4'], - 'id-1', 'video-wizard', '{ "autoplay": true, "controls": false }') + 'id-1', 'video-wizard', '{ "autoplay": true, "controls": false, "preload": true }') .row-fluid .span1.offset3 @@ -9,15 +11,20 @@ .span5 = file_field_tag 'video', :id => 'video-upload' +.hide + = image_tag '/system/images/video/red-button.png' + = image_tag '/system/images/video/green-button.png' - content_for :javascript_code do :javascript $(function () { var optionsVideo = { video: { width: 940, height: 530 }, - buttons: [ '' ] + buttons: [ { id: 'btn-red-light', path: '/system/images/video/red-button.png', clickable: false, start: 0.0, end: 25, x: 440, y: 510, delay: 300, value: null }, + { id: 'btn-green-light', path: '/system/images/video/green-button.png', clickable: false, start: 25, end: 999, x: 440, y: 510, delay: 300, value: null } + ] }; var VLibrasVideo = new VLibrasLocalization(); VLibrasVideo.init("#video-step", optionsVideo); - }) \ No newline at end of file + }); \ No newline at end of file -- libgit2 0.21.2