# 9.5.视频会议

FreeBSD 桌面环境可以用于参加视频会议。本节将介绍如何配置摄像头以及 FreeBSD 支持哪些视频会议应用程序。

## 9.5.1. 配置摄像头

为了让 FreeBSD 访问摄像头并进行配置，需要安装一些实用工具：

* [multimedia/webcamd](https://cgit.freebsd.org/ports/tree/multimedia/webcamd/) 是守护进程，支持使用数百种不同的 USB 摄像头和 DVB USB 设备。
* [multimedia/pwcview](https://cgit.freebsd.org/ports/tree/multimedia/pwcview/) 是应用程序，可用于查看摄像头的视频流。

要安装所需的实用工具，请执行：

```sh
# pkg install webcamd pwcview
```

在 `/etc/rc.conf` 中启用 [webcamd(8)](https://man.freebsd.org/cgi/man.cgi?query=webcamd\&sektion=8\&format=html) 服务，以便在系统启动时自动启动它：

```sh
# sysrc webcamd_enable=YES
```

用户必须属于 `webcamd` 组。要将用户添加到 `webcamd` 组，请执行以下命令：

```sh
# pw groupmod webcamd -m username
```

由于 [multimedia/webcamd](https://cgit.freebsd.org/ports/tree/multimedia/webcamd/) 需要 [cuse(3)](https://man.freebsd.org/cgi/man.cgi?query=cuse\&sektion=3\&format=html) 模块，因此必须加载该模块，执行以下命令：

```sh
# kldload cuse
```

要在系统启动时加载 [cuse(3)](https://man.freebsd.org/cgi/man.cgi?query=cuse\&sektion=3\&format=html)，执行以下命令：

```sh
# sysrc kld_list+=cuse
```

安装完这些工具后，可以使用 [webcamd(8)](https://man.freebsd.org/cgi/man.cgi?query=webcamd\&sektion=8\&format=html) 显示可用的摄像头列表：

```sh
# webcamd -l
```

输出应该类似于以下内容：

```sh
webcamd [-d ugen0.2] -N SunplusIT-Inc-HP-TrueVision-HD-Camera -S unknown -M 0 ①
webcamd [-d ugen1.3] -N Realtek-802-11n-WLAN-Adapter -S 00e04c000001 -M 0
```

* ① 可用的摄像头

通过执行以下命令配置可用的摄像头：

```sh
# sysrc webcamd_0_flags="-d ugen0.2" 
```

> **注意**
>
> 注意，如果这是一个即插即用的 USB 摄像头，更改连接的 USB 端口将更改 `webcamd -l` 输出中的内容，并且可能需要更新 rc.conf 中的条目。对于使用 USB 集成摄像头的笔记本电脑，这通常不成问题。

必须通过执行以下命令启动 [webcamd(8)](https://man.freebsd.org/cgi/man.cgi?query=webcamd\&sektion=8\&format=html) 服务：

```sh
# service webcamd start
```

输出应类似于以下内容：

```sh
Starting webcamd.
webcamd 1616 - - Attached to ugen0.2[0]
```

可以使用 [multimedia/pwcview](https://cgit.freebsd.org/ports/tree/multimedia/pwcview/) 检查摄像头是否正常工作。可以使用以下命令执行 [multimedia/pwcview](https://cgit.freebsd.org/ports/tree/multimedia/pwcview/)：

```sh
% pwcview -f 30 -s vga
```

然后 [multimedia/pwcview](https://cgit.freebsd.org/ports/tree/multimedia/pwcview/) 将显示摄像头画面：

![pwcview 显示 Absolute FreeBSD 第三版作为示例](https://docs.freebsd.org/images/books/handbook/multimedia/pwcview.png)

## 9.5.2. 会议软件状态

FreeBSD 当前支持以下用于进行视频会议的工具。

**表 5. 会议软件**

| 名称              | Firefox 状态 | Chromium 状态 | 网站                                                |
| --------------- | ---------- | ----------- | ------------------------------------------------- |
| Microsoft Teams | 不可用        | 可用          | [https://teams.live.com](https://teams.live.com/) |
| Google Meet     | 不可用        | 可用          | <https://meet.google.com/>                        |
| Zoom            | 可用         | 可用          | [https://zoom.us](https://zoom.us/)               |
| Jitsi           | 不可用        | 可用          | <https://meet.jit.si/>                            |
| BigBlueButton   | 不可用        | 可用          | <https://bigbluebutton.org/>                      |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://handbook.bsdcn.org/di-9-zhang-duo-mei-ti/9.5.-shi-pin-hui-yi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
