Commit be49e209 authored by seotts's avatar seotts Committed by Karishma Chadha

Revert "Add ability to display YouTube in addition to Wistia"

This reverts commit 8d758f0420b967aa5d3f9e9c14b9f9201c2702a6.
parent dd1fa888
...@@ -13,10 +13,7 @@ const Video = props => ( ...@@ -13,10 +13,7 @@ const Video = props => (
frameBorder="0" // deprecated attribute frameBorder="0" // deprecated attribute
height={props.height} height={props.height}
scrolling="no" // deprecated attribute scrolling="no" // deprecated attribute
src={props.isYouTube ? src={`https://fast.wistia.net/embed/iframe/${props.videoId}?seo=false&videoFoam=true`}
`https://www.youtube.com/embed/${props.videoId}?autoplay=1` :
`https://fast.wistia.net/embed/iframe/${props.videoId}?seo=false&videoFoam=true`
}
title={props.title} title={props.title}
width={props.width} width={props.width}
/> />
...@@ -28,7 +25,6 @@ const Video = props => ( ...@@ -28,7 +25,6 @@ const Video = props => (
); );
Video.defaultProps = { Video.defaultProps = {
height: '225', height: '225',
isYouTube: false,
title: '', title: '',
width: '400' width: '400'
}; };
...@@ -36,7 +32,6 @@ Video.defaultProps = { ...@@ -36,7 +32,6 @@ Video.defaultProps = {
Video.propTypes = { Video.propTypes = {
className: PropTypes.string, className: PropTypes.string,
height: PropTypes.string.isRequired, height: PropTypes.string.isRequired,
isYouTube: PropTypes.bool,
title: PropTypes.string.isRequired, title: PropTypes.string.isRequired,
videoId: PropTypes.string.isRequired, videoId: PropTypes.string.isRequired,
width: PropTypes.string.isRequired width: PropTypes.string.isRequired
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment