Video Consultations Integration

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.

Our competencies:
Development stages
Latest works
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1161
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1041
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    822
  • image_crm_chasseurs_493_0.webp
    CRM development for Chasseurs
    847
  • image_website-sbh_0.png
    Website development for SBH Partners
    999
  • image_website-_0.png
    Website development for Red Pear
    451

Integrating Video Consultations on Website

Video consultations on website — tool for medical, legal, financial and educational services. Doctor, lawyer or trainer communicate with client face-to-face without need meet physically. Technically — WebRTC with video stream or ready-made SDK integration.

Implementation Options

Ready-made SDK — Daily.co, Twilio Video, Vonage Video API, Agora. Faster development (2–4 weeks), require monthly payment per minutes.

Own WebRTC stack — maximum control, no dependency on external provider, harder maintain. Justified with large consultation volume.

Jitsi Meet API — open WebRTC server, can deploy yourself:

const jitsi = new JitsiMeetExternalAPI('meet.yourserver.ru', {
    roomName: `consultation-${consultationId}`,
    parentNode: document.getElementById('video-container'),
    userInfo: { displayName: user.name, email: user.email },
    configOverwrite: { startWithAudioMuted: false, startWithVideoMuted: false }
});

Daily.co SDK — Integration in Few Hours

// npm install @daily-co/daily-js

import Daily from '@daily-co/daily-js';

const callFrame = Daily.createFrame(document.getElementById('video-container'), {
    iframeStyle: { width: '100%', height: '600px' }
});

// Create room via API
const room = await fetch('https://api.daily.co/v1/rooms', {
    method: 'POST',
    headers: { Authorization: `Bearer ${DAILY_API_KEY}` },
    body: JSON.stringify({
        name:       `consultation-${consultationId}`,
        properties: {
            exp:         Math.floor(Date.now() / 1000) + 3600, // expires in hour
            max_participants: 2
        }
    })
}).then(r => r.json());

// Join room
await callFrame.join({ url: room.url, token: participantToken });

Session Planning and Management

consultations (
  id, doctor_id, patient_id,
  scheduled_at, duration_minutes,
  status: scheduled | active | completed | cancelled | no_show,
  room_id,      -- ID in video service
  join_url_doctor, join_url_patient,  -- unique links
  recording_url,
  notes         -- doctor notes after consultation
)

30 minutes before — email/push notifications to both with "Join consultation" button. Link contains one-time token tied to user.

Recording Consultations

Daily.co, Twilio Video and Jitsi support recording:

// Daily.co: start recording
callFrame.startRecording();
callFrame.on('recording-started', () => console.log('Recording started'));
callFrame.on('recording-stopped', (event) => {
    // event.recordingId — ID for download
});

Recordings stored at provider or downloaded via webhook and moved to S3. User consent for recording — mandatory (shown in UI before start).

Waiting Room (Lobby)

Client shouldn't enter room before specialist arrives. Implementation:

  • Client clicks "Enter" → goes to waiting
  • Specialist sees notification in cabinet
  • Specialist clicks "Start consultation" → both enter room
// Knock mode (Daily.co)
callFrame.join({ url: roomUrl, userData: { name: user.name } });
// Without admin token — user waits for approval

Screen and Documents

Shared screen viewing:

await callFrame.startScreenShare();

For document exchange during consultation — separate chat or file upload form next to video.

Adaptation for Weak Internet

Daily.co and Twilio automatically lower video quality on poor connection. For own WebRTC:

const sender = pc.getSenders().find(s => s.track?.kind === 'video');
const params = sender.getParameters();
params.encodings[0].maxBitrate = 500000; // 500 kbps
await sender.setParameters(params);

Development timeline: 2–3 weeks for Daily.co/Jitsi integration with consultation scheduler and notifications. Own WebRTC stack — 6–8 weeks.