import React from 'react'
import { webcastPropType } from '../../utils/webcastUtils'

const EmbedYoutube = (props) => {
  const src = `//www.youtube.com/embed/${props.webcast.channel}`
  return (
    <iframe
      width="100%"
      height="100%"
      src={src}
      frameBorder="0"
      allowFullScreen
    />
  )
}

EmbedYoutube.propTypes = {
  webcast: webcastPropType.isRequired,
}

export default EmbedYoutube

import React from 'react'
import { webcastPropType } from '../../utils/webcastUtils'

const EmbedYoutube = (props) => {
  const src = `//www.youtube.com/embed/${props.webcast.channel}?autoplay=1`
  return (
    <iframe
      width="100%"
      height="100%"
      src={src}
      frameBorder="0"
      allowFullScreen
    />
  )
}

EmbedYoutube.propTypes = {
  webcast: webcastPropType.isRequired,
}

export default EmbedYoutube

Fix gameday youtube not autoplaying
Fix gameday youtube not autoplaying
