renderVideoContent(parentEl) {
    parentEl.classList.add("loading");

    const video = new Clip("video", this.type, this.content, {
      oncanplay: () => {
        // To force recalculation of the positions of the slotsS
        window.dispatchEvent(new Event("resize"));

        parentEl.classList.remove("loading");
      }
    });

    const el = video.render();

    return el;
  }
/*
   * Only direct URL to a video file is supported.
   * Youtube and Vimeo for example require the use of iframe to play content.
   * This can be circumvented by using a paid account. 
   * So they are not supported.
   */
Only direct URL to a video file is supported.
Youtube and Vimeo for example require the use of iframe to play content.
This can be circumvented by using a paid account.
So they are not supported.
Only direct URL to a video file is supported . Youtube and Vimeo for example require the use of iframe to play content . This can be circumvented by using a paid account . So they are not supported .
renderVideoContent(parentEl) {
    parentEl.classList.add("loading");
    const video = new Clip("video", this.type, this.content, {
      oncanplay: () => {
        window.dispatchEvent(new Event("resize"));
        parentEl.classList.remove("loading");
      }
    });
    const el = video.render();
    return el;
  }
renderVideoContent ( parentEl ) { parentEl . classList . add ( "loading" ) ; const video = new Clip ( "video" , this . type , this . content , { oncanplay : ( ) => { window . dispatchEvent ( new Event ( "resize" ) ) ; parentEl . classList . remove ( "loading" ) ; } } ) ; const el = video . render ( ) ; return el ; }
Only direct URL to a video file is supported.
Only direct URL to a video file is supported .
// To force recalculation of the positions of the slotsS