Skip to main content

A lightweight, headless WebRTC-based communication SDK for 1-on-1 voice calls

Project description

OmniCall Headless SDK

A lightweight, headless WebRTC engine for 1-on-1 voice calls. Works across Web, Mobile Web, and Desktop.

Features

  • Headless: No UI included. Build your own interface.
  • Auto-Busy: Automatically rejects incoming calls if user is already in a call.
  • Cross-Platform: Connect Web-to-Web, Mobile-to-Mobile, or Web-to-Mobile.
  • Hardware Management: Automatically handles microphone permissions and cleanup.

Installation

Import the OmniCall class into your project:

import { OmniCall } from './path/to/sdk_core/web/core.js';


## QUICK START

const voice = new OmniCall({
    userId: "User_Unique_ID", // Can be Phone Number or String
    serverUrl: "ws://your-signaling-server:8000",
    onReady: () => console.log("Connected to server"),
    onIncoming: (callerId) => {
        // Show your custom "Incoming Call" popup here
        if(confirm("Call from " + callerId)) {
            voice.acceptCall();
        } else {
            voice.hangup();
        }
    },
    onAccepted: () => console.log("Call Connected!"),
    onBusy: () => alert("User is on another call"),
    onHangup: () => console.log("Call Ended")
});

voice.connect();


## CONTROL CALLS

// Start a call
voice.startCall("Target_User_ID");

// Mute logic (Implementation example)
voice.localStream.getAudioTracks()[0].enabled = false;

// End a call
voice.hangup();

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ominicall-0.1.2.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ominicall-0.1.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file ominicall-0.1.2.tar.gz.

File metadata

  • Download URL: ominicall-0.1.2.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ominicall-0.1.2.tar.gz
Algorithm Hash digest
SHA256 cb706347840aa1ed23d2617e2803480739df7fc5fde0b2b7f6306232184b03b3
MD5 26010a32c3180258d473c97e1af8c4b4
BLAKE2b-256 25904768870259b16fe3de49ca7b116ffa623a02cbfe6d0072b4210208568aa0

See more details on using hashes here.

Provenance

The following attestation bundles were made for ominicall-0.1.2.tar.gz:

Publisher: pypi-publish.yml on mani1028/Ominicall

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ominicall-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ominicall-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ominicall-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dfc1dc65dd74df4e162f14d6eb8694693cf6dfa05b49b18dd20d957191303dcb
MD5 9b177e685aadb541f286d0db5774bf7b
BLAKE2b-256 4e839371405128f5041f25b677feb7e6f96bd7b045dcb6ceed0609b6bdd3cf79

See more details on using hashes here.

Provenance

The following attestation bundles were made for ominicall-0.1.2-py3-none-any.whl:

Publisher: pypi-publish.yml on mani1028/Ominicall

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page