Whereby Integration for Embedded Video Calls on Website

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.
Development and maintenance of all types of websites:
Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Showing 1 of 1 servicesAll 2065 services
Whereby Integration for Embedded Video Calls on Website
Simple
from 1 business day to 3 business days
FAQ
Our competencies:
Development stages
Latest works
  • image_website-b2b-advance_0.png
    B2B ADVANCE company website development
    1215
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1161
  • image_websites_belfingroup_462_0.webp
    Website development for BELFINGROUP
    852
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1043
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    823
  • image_bitrix-bitrix-24-1c_fixper_448_0.png
    Website development for FIXPER company
    815

Whereby Embedded Integration for Video Calls on Website

Whereby Embedded is the simplest way to add video calls: create a room via API, insert <whereby-embed> web component in HTML—done. No manual WebRTC, no client SDKs.

Creating a Room via API

async function createWherebyRoom(params: {
  endDate?: Date;
  roomMode?: 'normal' | 'group';
  roomNamePrefix?: string;
}): Promise<{ roomUrl: string; meetingId: string; hostRoomUrl: string }> {
  const response = await fetch('https://api.whereby.dev/v1/meetings', {
    method: 'POST',
    headers: {
      'Authorization': `Bearer ${process.env.WHEREBY_API_KEY}`,
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
      endDate: (params.endDate ?? new Date(Date.now() + 2 * 60 * 60 * 1000)).toISOString(),
      roomMode: params.roomMode ?? 'normal',
      roomNamePrefix: params.roomNamePrefix,
      fields: ['hostRoomUrl'],
    }),
  });

  const meeting = await response.json();
  return {
    roomUrl: meeting.roomUrl,
    meetingId: meeting.meetingId,
    hostRoomUrl: meeting.hostRoomUrl,  // organizer—with extra rights
  };
}

Embedding via Web Component

// Native HTML—no npm dependencies
function WherebyCall({ roomUrl, displayName }) {
  return (
    <div style={{ height: 600 }}>
      <whereby-embed
        room={roomUrl}
        displayName={displayName}
        minimal
        background="off"
        chat="on"
        screenshare="on"
        style={{ width: '100%', height: '100%', border: 'none', borderRadius: 12 }}
      />
    </div>
  );
}

// In Next.js—add type declaration
declare global {
  namespace JSX {
    interface IntrinsicElements {
      'whereby-embed': React.DetailedHTMLProps<
        React.HTMLAttributes<HTMLElement> & {
          room: string;
          displayName?: string;
          minimal?: boolean | string;
          chat?: 'on' | 'off';
          screenshare?: 'on' | 'off';
          background?: 'on' | 'off';
        },
        HTMLElement
      >;
    }
  }
}

Whereby script is loaded via CDN—add to <head>:

<script type="module" src="https://cdn.srv.whereby.com/embed/v2-embed.esm.js"></script>

Premeeting Screen

Whereby by default shows a media check screen before entering. To disable:

<whereby-embed room={roomUrl} skip-media-permission-prompt />

Web Component Events

const containerRef = useRef<HTMLElement>(null);

useEffect(() => {
  const el = containerRef.current;
  if (!el) return;

  const onJoin = () => console.log('Joined');
  const onLeave = (e: CustomEvent) => {
    console.log('Left after', e.detail.participantId);
    onCallEnd?.();
  };

  el.addEventListener('ready', onJoin);
  el.addEventListener('leave', onLeave);

  return () => {
    el.removeEventListener('ready', onJoin);
    el.removeEventListener('leave', onLeave);
  };
}, []);

Timeline

Basic Whereby integration with room creation and web component—0.5–1 day.