Added poster attribute to video element so thumbnail can show until video is loaded
This commit is contained in:
parent
de6d6a0515
commit
a7c978c8d2
1 changed files with 1 additions and 1 deletions
|
@ -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 -->
|
||||
|
|
Reference in a new issue