template cover with updated example.config.js

This commit is contained in:
Sam Ludford
2019-05-16 10:38:46 +01:00
committed by Lachlan Kermode
parent 6e2ae8cd20
commit db92644624
22 changed files with 12866 additions and 76 deletions

View File

@@ -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}