Skip to content

Latest commit

 

History

History
63 lines (46 loc) · 1.4 KB

README.md

File metadata and controls

63 lines (46 loc) · 1.4 KB

restAPI

Create a Meeting

To initiate a meeting, send an HTTP request to MiroTalk’s server with your API key. Replace the default secret key in .env with your own.

API_KEY_SECRET=mirotalkp2p_default_secret

Use the following examples to make API calls:

# Node.js
node meeting.js
node join.js
node token.js

# PHP
php meeting.php
php join.php
php token.php

# Python
python3 meeting.py
python3 join.py
python3 token.py # rename token in something else

# Bash
./meeting.sh
./join.sh
./token.sh

The server response will contain a meeting URL that can be embedded in your client using an iframe.


Embed a Meeting

To embed a meeting in your service or app, use an iframe with the source attribute set to the meeting URL obtained from the HTTP response.

<iframe
    allow="camera; microphone; display-capture; fullscreen; clipboard-read; clipboard-write; web-share; autoplay"
    src="https://p2p.mirotalk.com/join/test"
    style="height: 100vh; width: 100vw; border: 0px;"
></iframe>

Fast Integration

Integrate video meetings into your website or application quickly by incorporating the following iframe code:

<iframe
    allow="camera; microphone; display-capture; fullscreen; clipboard-read; clipboard-write; web-share; autoplay"
    src="https://p2p.mirotalk.com/newcall"
    style="height: 100vh; width: 100vw; border: 0px;"
></iframe>