mirror of
https://github.com/thumbsup/thumbsup
synced 2024-11-03 15:40:14 +00:00
Fix video poster aspect ratio: simply use the built-in VideoJS poster
This commit is contained in:
parent
9a24acc6df
commit
6cdc99525c
@ -22,7 +22,7 @@
|
||||
{{#each album.files}}
|
||||
{{#if isVideo}}
|
||||
<div id="media{{id}}" style="display:none;">
|
||||
<video class="lg-video-object lg-html5 video-js vjs-default-skin" preload="none" controls>
|
||||
<video class="lg-video-object lg-html5 video-js vjs-default-skin vjs-big-play-centered" poster="{{relative urls.large}}" preload="none" controls>
|
||||
<source src="{{relative urls.video}}" type="video/mp4" />
|
||||
Your browser does not support HTML5 video
|
||||
</video>
|
||||
|
@ -40,7 +40,6 @@
|
||||
{{#each album.files~}}
|
||||
{{#if isVideo~}}
|
||||
<li data-html="#media{{id}}"
|
||||
data-poster="{{relative urls.large}}"
|
||||
data-download-url="{{relative urls.download}}">
|
||||
<a href="{{relative urls.download}}">
|
||||
<img src="{{relative urls.thumbnail}}"
|
||||
|
@ -36,7 +36,6 @@
|
||||
{{#each album.files}}
|
||||
{{#if isVideo~}}
|
||||
<li data-html="#media{{id}}"
|
||||
data-poster="{{relative urls.large}}"
|
||||
data-download-url="{{relative urls.download}}">
|
||||
<a href="{{relative urls.download}}">
|
||||
<img src="{{relative urls.thumbnail}}"
|
||||
|
@ -54,7 +54,6 @@
|
||||
{{#each album.files}}
|
||||
{{#if isVideo~}}
|
||||
<li data-html="#media{{id}}"
|
||||
data-poster="{{relative urls.large}}"
|
||||
data-download-url="{{relative urls.download}}">
|
||||
<a href="{{relative urls.download}}">
|
||||
<img src="{{relative urls.thumbnail}}"
|
||||
|
Loading…
Reference in New Issue
Block a user