Fix video loading

This commit is contained in:
schmelczerandras 2020-12-04 22:38:57 +01:00
parent a39c8c9350
commit 4b11edfbd9
9 changed files with 80 additions and 16 deletions

View file

@ -1,6 +1,7 @@
import forexPosterWebP from '../static/media/forex.jpg?format=webp';
import forexPosterJpeg from '../static/media/forex.jpg?format=jpg';
import forexMp4 from '../static/media/mp4/forex.mp4';
import forexWebM from '../static/media/webm/forex.webm';
import forexPoster from '../static/media/forex.jpg';
import { Video } from '../page/basics/video/video';
@ -8,7 +9,8 @@ export const forexTimelineElement = {
title: `Predicting foreign exchange rates`,
date: `2019 Autumn`,
figure: new Video({
poster: forexPoster,
posterWebP: forexPosterWebP,
posterJpeg: forexPosterJpeg,
mp4: forexMp4,
webm: forexWebM,
invertButton: true,