diff --git a/typo3/sysext/frontend/Classes/ContentObject/FlowPlayerContentObject.php b/typo3/sysext/frontend/Classes/ContentObject/FlowPlayerContentObject.php index 29c99ac..b0b4bfe 100644 --- a/typo3/sysext/frontend/Classes/ContentObject/FlowPlayerContentObject.php +++ b/typo3/sysext/frontend/Classes/ContentObject/FlowPlayerContentObject.php @@ -414,6 +414,13 @@ class FlowPlayerContentObject extends \TYPO3\CMS\Frontend\ContentObject\Abstract } else { // Video tag with Flash fallback $conf['params.']['playerFallbackOrder'] = array('html5', 'flash'); + + // add preview image, html5 poster attribute + $poster = preg_replace('/.[^.]*$/', '.jpg', $conf['sources'][1]); + if (file_exists(PATH_site . $poster)){ + $attributes .= ' poster=' . $poster . ' '; + } + $videoTagContent = $videoSources . $videoCaptions; if (isset($conf['videoflashvars']['url'])) { $videoTagContent .= '