mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 21:38:35 +03:00
template cover with updated example.config.js
This commit is contained in:
committed by
Lachlan Kermode
parent
6e2ae8cd20
commit
db92644624
@@ -10,7 +10,7 @@ export default ({ media, viewIdx }) => {
|
||||
const shiftW = el ? el.getBoundingClientRect().width : 0
|
||||
|
||||
function renderMedia (media) {
|
||||
const { path, type } = media
|
||||
const { path, type, poster } = media
|
||||
switch (type) {
|
||||
case 'Image':
|
||||
return (
|
||||
@@ -27,6 +27,7 @@ export default ({ media, viewIdx }) => {
|
||||
return (
|
||||
<div className='media-player'>
|
||||
<Player
|
||||
poster={poster}
|
||||
className='source-video'
|
||||
playsInline
|
||||
src={path}
|
||||
|
||||
Reference in New Issue
Block a user