Skip to content

Commit

Permalink
Load video from CDN instead of sourcing it from app's assets
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyzhen committed Jan 23, 2024
1 parent 50b71aa commit 58bb30c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/LandingPage/components/backgroundVideo.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import React from 'react';
import VideoMoleculeNetwork from '../../assets/LandingPageGraphics/background_video_molecules_221511488.mp4';

const videoMoleculeNetwork =
'https://cdn.motrpac-data.org/assets/datahub/landing_page/media/background_video_molecules_221511488.mp4';

function BackgroundVideo() {
return (
<video className="fullscreen" autoPlay muted loop>
<source src={VideoMoleculeNetwork} type="video/mp4" />
<source src={videoMoleculeNetwork} type="video/mp4" />
</video>
);
}
Expand Down

0 comments on commit 58bb30c

Please sign in to comment.