Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
docs: add note to VideoPlayer.js
Browse files Browse the repository at this point in the history
  • Loading branch information
CanRau committed Jan 2, 2020
1 parent bd777c4 commit d6833be
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/VideoPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ import { Box } from '@theme-ui/components'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faPlay } from '@fortawesome/free-solid-svg-icons/faPlay'

/**
* https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/replace-animated-gifs-with-video
* https://developer.mozilla.org/en-US/docs/Web/Guide/Audio_and_video_delivery/cross_browser_video_player
* https://css-tricks.com/NetMag/FluidWidthVideo/Article-FluidWidthVideo.php
*/

export const VideoPlayer = ({ video, poster, wrapperStyles, ...props }) => {
const videoEl = useRef()
const [isPlaying, setIsPlaying] = useState(false)
Expand Down

0 comments on commit d6833be

Please sign in to comment.