Added poster attribute to video element so thumbnail can show until video is loaded

This commit is contained in:
Matthew Barbour 2019-06-25 15:42:25 -05:00 committed by Shish
parent de6d6a0515
commit a7c978c8d2

View file

@ -48,7 +48,7 @@ class VideoFileHandlerTheme extends Themelet
$loop = ($loop ? ' loop' : '');
$html .= "
<video controls class='shm-main-image' id='main_image' alt='main image' {$autoplay} {$loop} style='max-width: 100%'>
<video controls class='shm-main-image' id='main_image' alt='main image' poster='$thumb_url' {$autoplay} {$loop} style='max-width: 100%'>
<source src='{$ilink}' type='{$supportedExts[$ext]}'>
<!-- If browser doesn't support filetype, fallback to flash -->