Skip to content

Commit 559867d

Browse files
committed
docs: add livekit deployment document
1 parent f29352d commit 559867d

File tree

23 files changed

+216
-88
lines changed

23 files changed

+216
-88
lines changed

docker/livekit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: "3.3"
22

33
services:
4-
# 后台应用
4+
# livekit webhook receiver
55
tailchat-livekit-webhook-receiver:
66
build:
77
context: ../
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"label": "Video Conference",
3-
"position": 60
3+
"position": 35
44
}

website/docs/meeting/deployment.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ sidebar_position: 2
33
title: Deploy Tailchat Meeting
44
---
55

6+
:::info
7+
The `Tailchat Meeting` solution is currently not integrated with `Tailchat`, if you want to use the video conferencing solution in Tailchat, please choose `agora` or `livekit` solution
8+
:::
9+
610
The video conferencing service `Tailchat Meeting` can exist as an independent application. In this section, we will describe how to deploy `Tailchat Meeting` independently
711

812
The following content is based on the `docker` environment, please ensure that the server has the most basic `docker` environment.

website/docs/meeting/design.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

website/docs/meeting/intro.md

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,46 @@
22
sidebar_position: 1
33
title: Summary
44
---
5-
`Tailchat` provides two solutions for video and voice calls, you can choose according to the actual situation:
6-
- `tailchat-meeting` self-deploying video conferencing (WIP)
5+
6+
:::info
7+
Video Conference solutions require SSL support, so only websites that support https will work properly
8+
:::
9+
10+
`Tailchat` provides those solutions for video and voice calls, you can choose according to the actual situation:
11+
- ~~`tailchat-meeting` self-deploying video conferencing (WIP)~~
712
- `agora` Acoustic Network integration, for details, see: [Acoustic Network Plug-in Deployment Guide](./agora.md)
13+
- `livekit` Allow self-host solution: [Livekit Plugin Deployment Guide](./livekit.md)
814

9-
## Tailchat Meeting
1015

11-
The video conferencing module is an important part of the suite of `Tailchat` series. Capabilities are provided as follows:
12-
- Voice communication
13-
- Video session
14-
- screen sharing
15-
- virtual background
16-
- file transfer
17-
- chat record
16+
<details>
17+
<summary>Collapsed content is outdated</summary>
18+
19+
## Tailchat Meeting
1820

19-
At the same time, `tailchat-meeting` can also exist as an independent product, and you can quickly initiate/join meetings without logging in
21+
The video conferencing module is an important part of the suite of `Tailchat` series. Capabilities are provided as follows:
22+
- Voice communication
23+
- Video session
24+
- screen sharing
25+
- virtual background
26+
- file transfer
27+
- chat record
2028

21-
### Project repository
29+
At the same time, `tailchat-meeting` can also exist as an independent product, and you can quickly initiate/join meetings without logging in
2230

23-
- Open source address: [https://github.com/msgbyte/tailchat-meeting](https://github.com/msgbyte/tailchat-meeting)
24-
- Open source agreement: Apache 2.0
31+
### Project repository
2532

26-
:::info Open source statement
27-
This project is based on secondary development of [edumeet](https://github.com/edumeet/edumeet) and [mediasoup](https://github.com/versatica/mediasoup).
33+
- Open source address: [https://github.com/msgbyte/tailchat-meeting](https://github.com/msgbyte/tailchat-meeting)
34+
- Open source agreement: Apache 2.0
35+
36+
:::info Open source statement
37+
This project is based on secondary development of [edumeet](https://github.com/edumeet/edumeet) and [mediasoup](https://github.com/versatica/mediasoup).
38+
39+
On this basis, function addition, SDK implementation and code optimization were carried out. If you want to find a looser implementation of the open source protocol (MIT + ISC protocol), you can take a look at these two projects
40+
:::
2841

29-
On this basis, function addition, SDK implementation and code optimization were carried out. If you want to find a looser implementation of the open source protocol (MIT + ISC protocol), you can take a look at these two projects
30-
:::
3142

43+
### Project Architecture
3244

33-
### Project Architecture
45+
![](/img/architecture/meeting.excalidraw.svg)
3446

35-
![](/img/architecture/meeting.excalidraw.svg)
47+
</details>

website/docs/meeting/livekit.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
---
2+
sidebar_position: 20
3+
title: Livekit Plugin Deployment Guide
4+
---
5+
6+
`Livekit` is an open source video conferencing solution based on the `Apache-2.0` open source protocol, allowing self-host, supporting video conferencing, live streaming, recording and other scenarios
7+
8+
You can use his cloud service or self-host. Below I will introduce how to integrate `Livekit` into `Tailchat`:
9+
10+
## Cloud Services
11+
12+
First enter the Livekit cloud platform: [https://cloud.livekit.io/](https://cloud.livekit.io/), in the first time you enter, you need to create a project:
13+
14+
It will ask some questions, just answer them according to the situation.
15+
16+
![](/img/advanced-usage/livekit/1.png)
17+
18+
After completion, we will enter the console main dashboard:
19+
20+
![](/img/advanced-usage/livekit/2.png)
21+
22+
### Get the required environment variables
23+
24+
For the plugin to work, we need the following environment variables:
25+
26+
- `LIVEKIT_URL`
27+
- `LIVEKIT_API_KEY`
28+
- `LIVEKIT_API_SECRET`
29+
30+
Among them, `LIVEKIT_URL` can be obtained directly from the console, in the form of `wss://********.livekit.cloud`
31+
32+
In the `Settings` menu on the left, we need to create a pair of secret keys by ourselves
33+
34+
![](/img/advanced-usage/livekit/3.png)
35+
36+
![](/img/advanced-usage/livekit/4.png)
37+
38+
![](/img/advanced-usage/livekit/5.png)
39+
40+
Here we can get `LIVEKIT_API_KEY` and `LIVEKIT_API_SECRET`.
41+
42+
Record and fill in the environment variables and start `Tailchat`.
43+
44+
### Start the webhook
45+
46+
![](/img/advanced-usage/livekit/6.png)
47+
48+
If you need the above-mentioned channel online prompts to be updated immediately, you need to start a `webhook-receiver` separately to accept pushes from `livekit` and forward the received events to `Tailchat`, so that `Tailchat` can update all groups Display of group membership.
49+
50+
The official `docker-compose` configuration has been prepared for you with one click, just like `admin`:
51+
52+
```bash
53+
wget https://raw.githubusercontent.com/msgbyte/tailchat/master/docker/livekit.yml
54+
docker compose -f docker-compose.yml -f livekit.yml up -d
55+
```
56+
57+
At this point you can see a `tailchat-livekit-webhook-receiver` service in the docker running container.
58+
59+
Then we switch to the `livekit` console and add our address in the `webhook`.
60+
61+
![](/img/advanced-usage/livekit/7.png)
62+
63+
Generally `https://<your tailchat url>/livekit/webhook`, remember to choose the same key pair as the service
64+
65+
![](/img/advanced-usage/livekit/8.png)
66+
67+
> PS: There may be some delays in cloud applications.
68+
69+
## Self-host
70+
71+
See the official documentation for self-host: [https://docs.livekit.io/oss/deployment/](https://docs.livekit.io/oss/deployment/)
72+
73+
In addition to the different deployment methods and configuration first, others are the same as using cloud services

website/docs/meeting/plugin.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

website/docs/meeting/sdk.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/meeting/_category_.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/meeting/deployment.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ sidebar_position: 2
33
title: 部署视频会议
44
---
55

6+
:::info
7+
`Tailchat Meeting` 方案目前没有与 `Tailchat` 做集成,如果你期望在Tailchat中使用视频会议方案请选择 `agora``livekit` 解决方案
8+
:::
9+
610
视频会议服务 `Tailchat Meeting` 可以作为一个独立应用单品存在。在本节中将会讲述如何独立部署 `Tailchat Meeting`
711

812
以下内容均基于`docker`环境,请确保服务端有 `docker` 最基本程度的环境。

0 commit comments

Comments
 (0)