Files
mirotalk/app/api/README.md
T
2022-06-13 14:49:51 +02:00

42 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[![restAPI](restAPI.png)](https://p2p.mirotalk.com/api/v1/docs)
## Create a meeting
Create a meeting with a `HTTP request` containing the `API_KEY` sent to MiroTalks server. The response contains a `meeting` URL that can be `embedded` in your client within an `iframe`.
```bash
cd meeting
# js
node meeting.js
# php
php meeting.php
# python
python meeting.py
# bash
./meeting.sh
```
## Embed a meeting
Embedding a meeting into a `service` or `app` requires using an `iframe` with the `src` attribute specified as the `meeting` from `HTTP response`. Change the iframe `src` with your own instance of MiroTalk.
```html
<iframe
allow="camera; microphone; fullscreen; display-capture; autoplay"
src="https://mirotalk.herokuapp.com/join/room_name"
style="height: 100%; width: 100%; border: 0px;"
></iframe>
```
## Fast Integration
Develop your `website` or `application`, and bring `video meetings` in with a simple `iframe`.
```html
<iframe
allow="camera; microphone; fullscreen; display-capture; autoplay"
src="https://mirotalk.herokuapp.com/newcall"
style="height: 100%; width: 100%; border: 0px;"
></iframe>
```