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

const EmbedDacast = (props) => {
  const channel = props.webcast.channel
  const file = props.webcast.file
  const iframeSrc = `https://static.viewer.dacast.com/b/${channel}/c/${file}`
  return (
    <iframe
      src={iframeSrc}
      width="100%"
      height="100%"
      frameBorder="0"
      scrolling="no"
    />
  )
}

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

export default EmbedDacast

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

const EmbedDacast = (props) => {
  const channel = props.webcast.channel
  const file = props.webcast.file
  const iframeSrc = `https://static.viewer.dacast.com/b/${channel}/c/${file}`
  return (
    <iframe
      src={iframeSrc}
      width="100%"
      height="100%"
      frameBorder="0"
      scrolling="no"
      allowFullScreen
    />
  )
}

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

export default EmbedDacast

Allow full screen on dacast embeds
[GD2] Allow full screen on dacast embeds
