using original video while only slightly compressing file to retain quality
authorAnthony Talarico <talarico@gaslightmedia.com>
Wed, 13 Dec 2017 14:42:27 +0000 (09:42 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Wed, 13 Dec 2017 14:42:27 +0000 (09:42 -0500)
using video closer in compression to the original video file for the header

assets/videos/header-video.m4v [new file with mode: 0644]
assets/videos/header-video.mp4 [new file with mode: 0755]
assets/videos/header.m4v [deleted file]
assets/videos/header.webm [deleted file]
assets/videos/no-audio.mp4 [deleted file]
js/app.js
js/custom/pageSetup.js
parts/video.php

diff --git a/assets/videos/header-video.m4v b/assets/videos/header-video.m4v
new file mode 100644 (file)
index 0000000..54dcea9
Binary files /dev/null and b/assets/videos/header-video.m4v differ
diff --git a/assets/videos/header-video.mp4 b/assets/videos/header-video.mp4
new file mode 100755 (executable)
index 0000000..036c6ff
Binary files /dev/null and b/assets/videos/header-video.mp4 differ
diff --git a/assets/videos/header.m4v b/assets/videos/header.m4v
deleted file mode 100644 (file)
index 062e8f5..0000000
Binary files a/assets/videos/header.m4v and /dev/null differ
diff --git a/assets/videos/header.webm b/assets/videos/header.webm
deleted file mode 100644 (file)
index 81c04ed..0000000
Binary files a/assets/videos/header.webm and /dev/null differ
diff --git a/assets/videos/no-audio.mp4 b/assets/videos/no-audio.mp4
deleted file mode 100644 (file)
index fade852..0000000
Binary files a/assets/videos/no-audio.mp4 and /dev/null differ
index ec8fa66..783161b 100644 (file)
--- a/js/app.js
+++ b/js/app.js
@@ -35,9 +35,9 @@ $(document).ready(function () {
     });
     var headerVideo = document.getElementById('front-page-video');
 
-    if($(window).width() > 1024){
-        $(headerVideo).attr("controls",false); 
-    }
+    // if($(window).width() > 1024){
+    //     $(headerVideo).attr("controls",false); 
+    // }
 
     var loc = window.location.href; // returns the full URL
     if(/regions/.test(loc)) {
index baefe6b..1551179 100644 (file)
@@ -26,9 +26,9 @@ $(document).ready(function () {
     });
     var headerVideo = document.getElementById('front-page-video');
 
-    if($(window).width() > 1024){
-        $(headerVideo).attr("controls",false); 
-    }
+    // if($(window).width() > 1024){
+    //     $(headerVideo).attr("controls",false); 
+    // }
 
     var loc = window.location.href; // returns the full URL
     if(/regions/.test(loc)) {
index 6e5f7c4..11355e0 100644 (file)
@@ -1,7 +1,7 @@
 <?php if (is_front_page()) : ?>
        <div id="front-page-video-container">
-    <video id="front-page-video" playsinline autoplay loop muted>
-        <source src="<?php bloginfo('template_url'); ?>/assets/videos/header-mute.m4v" type="video/mp4">
+    <video id="front-page-video" playsinline autoplay loop controls muted>
+        <source src="<?php bloginfo('template_url'); ?>/assets/videos/header-video.m4v" type="video/mp4">
     </video>
     
         <!-- <div class="show-for-medium-down">