mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-30 10:58:23 -05:00
Revert "Add ability to display YouTube in addition to Wistia"
This reverts commit 8d758f0420b967aa5d3f9e9c14b9f9201c2702a6.
This commit is contained in:
parent
dd1fa88889
commit
be49e209bb
1 changed files with 1 additions and 6 deletions
|
@ -13,10 +13,7 @@ const Video = props => (
|
|||
frameBorder="0" // deprecated attribute
|
||||
height={props.height}
|
||||
scrolling="no" // deprecated attribute
|
||||
src={props.isYouTube ?
|
||||
`https://www.youtube.com/embed/${props.videoId}?autoplay=1` :
|
||||
`https://fast.wistia.net/embed/iframe/${props.videoId}?seo=false&videoFoam=true`
|
||||
}
|
||||
src={`https://fast.wistia.net/embed/iframe/${props.videoId}?seo=false&videoFoam=true`}
|
||||
title={props.title}
|
||||
width={props.width}
|
||||
/>
|
||||
|
@ -28,7 +25,6 @@ const Video = props => (
|
|||
);
|
||||
Video.defaultProps = {
|
||||
height: '225',
|
||||
isYouTube: false,
|
||||
title: '',
|
||||
width: '400'
|
||||
};
|
||||
|
@ -36,7 +32,6 @@ Video.defaultProps = {
|
|||
Video.propTypes = {
|
||||
className: PropTypes.string,
|
||||
height: PropTypes.string.isRequired,
|
||||
isYouTube: PropTypes.bool,
|
||||
title: PropTypes.string.isRequired,
|
||||
videoId: PropTypes.string.isRequired,
|
||||
width: PropTypes.string.isRequired
|
||||
|
|
Loading…
Reference in a new issue