function _attachIFrame() {
  var iFrameElement = _this.childElements.iFrame;
  var iFrameContainerElement = _this.childElements.iFrameContainer;

  if ( _isIframeLoaded === false && _isIframeLoading === false &&
    iFrameElement === null ) {
    iFrameElement = _createElement( 'iframe', _this.iFrameProperties );
    iFrameElement.classList.add( CLASSES.IFRAME_CLASS_NAME );
    iFrameElement.setAttribute( 'frameborder', 0 );
    _this.state.isIframeLoading = true;
    iFrameElement.onload =
      function oniFrameLoad() { _this.state.setIsIframeLoaded( true ); };
    iFrameContainerElement.appendChild( iFrameElement );
  } else if ( _this.childElements.iframeContainer === null ) {
    throw new Error( 'No iframe container element found.' );
  }

  return iFrameElement;
}
/**
* Function used to attach the video iframe.
* @throws Will throw an error if no iframe element is found.
* @returns {HTMLNode} A dom element.
*/
Function used to attach the video iframe.
Function used to attach the video iframe .
function _attachIFrame() {
  var iFrameElement = _this.childElements.iFrame;
  var iFrameContainerElement = _this.childElements.iFrameContainer;
  if ( _isIframeLoaded === false && _isIframeLoading === false &&
    iFrameElement === null ) {
    iFrameElement = _createElement( 'iframe', _this.iFrameProperties );
    iFrameElement.classList.add( CLASSES.IFRAME_CLASS_NAME );
    iFrameElement.setAttribute( 'frameborder', 0 );
    _this.state.isIframeLoading = true;
    iFrameElement.onload =
      function oniFrameLoad() { _this.state.setIsIframeLoaded( true ); };
    iFrameContainerElement.appendChild( iFrameElement );
  } else if ( _this.childElements.iframeContainer === null ) {
    throw new Error( 'No iframe container element found.' );
  }
  return iFrameElement;
}
function _attachIFrame ( ) { var iFrameElement = _this . childElements . iFrame ; var iFrameContainerElement = _this . childElements . iFrameContainer ; if ( _isIframeLoaded === false && _isIframeLoading === false && iFrameElement === null ) { iFrameElement = _createElement ( 'iframe' , _this . iFrameProperties ) ; iFrameElement . classList . add ( CLASSES . IFRAME_CLASS_NAME ) ; iFrameElement . setAttribute ( 'frameborder' , 0 ) ; _this . state . isIframeLoading = true ; iFrameElement . onload = function oniFrameLoad ( ) { _this . state . setIsIframeLoaded ( true ) ; } ; iFrameContainerElement . appendChild ( iFrameElement ) ; } else if ( _this . childElements . iframeContainer === null ) { throw new Error ( 'No iframe container element found.' ) ; } return iFrameElement ; }
Function used to attach the video iframe.
Function used to attach the video iframe .