Below is my code. Video is correctly appearing on mobile emulator in chrome however not appearing on mobile device .. I removed 'autoplay' from video and created a mp4 and webm file type for video. Still no luck. Help?
<script>
(function($) {
var screenWidth = $(window).width();
if(screenWidth < 1025 && screenWidth > 374 ){
customVideo = document.createElement("video");
customVideo.setAttribute("id", "mobileVideo");
customVideo.controls = true;
customVideo.autoplay = false;
customVideo.mute = true;
customVideo.src = 'https://kauaihp.com/wp-content/themes/KauaiHp/assets/media/KauaiHP_homepage-video_10-11-2017_v4.mp4';
customVideo.type = 'video/mp4';
customVideo.src = 'https://kauaihp.com/wp-content/themes/KauaiHp/assets/media/KauaiHP_homepage_video_10_09_2017_mp4.webm';
customVideo.type = 'video/webm;'
console.log('customVideo', customVideo);
$('#sliders-container').append(customVideo);
}
}) (jQuery);
</script>