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

const EmbedTwitch = (props) => {
  const channel = props.webcast.channel
  const iframeSrc = `https://player.twitch.tv/?channel=${channel}`
  return (
    <iframe
      src={iframeSrc}
      frameBorder="0"
      scrolling="no"
      height="100%"
      width="100%"
    />
  )
}

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

export default EmbedTwitch

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

const EmbedTwitch = (props) => {
  const channel = props.webcast.channel
  const iframeSrc = `https://player.twitch.tv/?channel=${channel}`
  return (
    <iframe
      src={iframeSrc}
      frameBorder="0"
      scrolling="no"
      height="100%"
      width="100%"
      allowFullScreen
    />
  )
}

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

export default EmbedTwitch

Fix gameday2 not allowing fullscreen Twitch
Fix gameday2 not allowing fullscreen Twitch
